mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 17:43:49 -07:00
Inital work on Twitter notifications
This commit is contained in:
parent
e05365a669
commit
2fbf7a4114
22 changed files with 683 additions and 18 deletions
7
src/UI/Form/ActionTemplate.hbs
Normal file
7
src/UI/Form/ActionTemplate.hbs
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="form-group {{#if advanced}}advanced-setting{{/if}}">
|
||||
<label class="col-sm-3 control-label"></label>
|
||||
|
||||
<div class="col-sm-5">
|
||||
<button class="form-control x-path {{name}}" data-value="{{value}}">{{label}}</button>
|
||||
</div>
|
||||
</div>
|
|
@ -29,6 +29,10 @@ var _fieldBuilder = function(field) {
|
|||
return _templateRenderer.call(field, 'Form/SelectTemplate');
|
||||
}
|
||||
|
||||
if (field.type === 'hidden') {
|
||||
return _templateRenderer.call(field, 'Form/HiddenTemplate');
|
||||
}
|
||||
|
||||
if (field.type === 'path') {
|
||||
return _templateRenderer.call(field, 'Form/PathTemplate');
|
||||
}
|
||||
|
@ -37,6 +41,11 @@ var _fieldBuilder = function(field) {
|
|||
return _templateRenderer.call(field, 'Form/TagTemplate');
|
||||
}
|
||||
|
||||
if (field.type === 'action') {
|
||||
return _templateRenderer.call(field, 'Form/ActionTemplate');
|
||||
}
|
||||
|
||||
|
||||
return _templateRenderer.call(field, 'Form/TextboxTemplate');
|
||||
};
|
||||
|
||||
|
|
|
@ -1,8 +1 @@
|
|||
<div class="form-group hidden">
|
||||
<label class="col-sm-3 control-label">{{label}}</label>
|
||||
|
||||
<div class="col-sm-5">
|
||||
<input type="text" name="fields.{{order}}.value" validation-name="{{name}}" spellcheck="false" class="form-control"/>
|
||||
</div>
|
||||
{{> FormHelpPartial}}
|
||||
</div>
|
||||
<input type="hidden" name="fields.{{order}}.value" validation-name="{{name}}" spellcheck="false"/>
|
Loading…
Add table
Add a link
Reference in a new issue