mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Display manifest example as help text.
This commit is contained in:
parent
3fc5675a1a
commit
99f531909f
3 changed files with 8 additions and 0 deletions
|
@ -338,6 +338,10 @@ div.br {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.example-help-block {
|
||||||
|
text-align: left;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
.quota-help-block {
|
.quota-help-block {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
"unknown_argument" : "Unknown argument : %s",
|
"unknown_argument" : "Unknown argument : %s",
|
||||||
"api_not_responding" : "API is not responding",
|
"api_not_responding" : "API is not responding",
|
||||||
"error_retrieve_feed" : "Could not retrieve feed : %s",
|
"error_retrieve_feed" : "Could not retrieve feed : %s",
|
||||||
|
"form_input_example" : "Example: %s",
|
||||||
|
|
||||||
"confirm_delete" : "Are you sure you want to delete %s ?",
|
"confirm_delete" : "Are you sure you want to delete %s ?",
|
||||||
"confirm_change_maindomain" : "Are you sure you want to change the main domain ?",
|
"confirm_change_maindomain" : "Are you sure you want to change the main domain ?",
|
||||||
|
|
|
@ -50,6 +50,9 @@
|
||||||
<input type="{{inputType}}" id="{{name}}" name="{{name}}" class="form-control" value="{{default}}" placeholder="{{example}}" {{required}} {{{attributes}}}>
|
<input type="{{inputType}}" id="{{name}}" name="{{name}}" class="form-control" value="{{default}}" placeholder="{{example}}" {{required}} {{{attributes}}}>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if example}}
|
||||||
|
<span class="help-block example-help-block">{{t 'form_input_example' example}}</span>
|
||||||
|
{{/if}}
|
||||||
{{#if help}}
|
{{#if help}}
|
||||||
<span class="help-block">{{{help}}}</span>
|
<span class="help-block">{{{help}}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue