[enh] Display manifest example as help text.

This commit is contained in:
opi 2016-06-22 13:22:27 +02:00
parent 3fc5675a1a
commit 99f531909f
3 changed files with 8 additions and 0 deletions

View file

@ -338,6 +338,10 @@ div.br {
text-align: right;
}
.example-help-block {
text-align: left;
float: left;
}
.quota-help-block {
text-align: left;
line-height: 1.2;

View file

@ -64,6 +64,7 @@
"unknown_argument" : "Unknown argument : %s",
"api_not_responding" : "API is not responding",
"error_retrieve_feed" : "Could not retrieve feed : %s",
"form_input_example" : "Example: %s",
"confirm_delete" : "Are you sure you want to delete %s ?",
"confirm_change_maindomain" : "Are you sure you want to change the main domain ?",

View file

@ -50,6 +50,9 @@
<input type="{{inputType}}" id="{{name}}" name="{{name}}" class="form-control" value="{{default}}" placeholder="{{example}}" {{required}} {{{attributes}}}>
{{/if}}
{{#if example}}
<span class="help-block example-help-block">{{t 'form_input_example' example}}</span>
{{/if}}
{{#if help}}
<span class="help-block">{{{help}}}</span>
{{/if}}