Revision 1ba8458a
Added by Dominic Cleal about 10 years ago
app/views/config_templates/_form.html.erb | ||
---|---|---|
</div>
|
||
</div>
|
||
</div>
|
||
<%= textarea_f f, :template, :class => "template_text", :label =>'',:size => "max", :'data-file-name' => @config_template.name %>
|
||
<%= textarea_f f, :template, :class => "template_text", :label =>:none, :size => "max", :'data-file-name' => @config_template.name %>
|
||
|
||
|
||
<%= file_field_f f, :template, :class => "template_file",:size => "col-md-12",
|
||
<%= file_field_f f, :template, :class => "template_file",:size => "col-md-10",
|
||
:help_block => _("Selecting a file will override the editor and load the file instead") %>
|
||
<%= textarea_f f, :audit_comment, :size => "col-md-12", :rows => 3, :label => _("Audit Comment"),
|
||
<%= textarea_f f, :audit_comment, :size => "col-md-10", :rows => 3, :label => _("Audit Comment"),
|
||
:help_block => _("The Audit Comment field is saved with the template auditing to document the template changes") %>
|
||
</div>
|
||
<div class="tab-pane" id="template_type">
|
||
<%= checkbox_f f, :snippet, :onchange => "snippet_changed(this)", :label=>'', :help_inline=>_('Snippet') %>
|
||
<%= checkbox_f f, :snippet, :onchange => "snippet_changed(this)", :label=>_('Snippet') %>
|
||
|
||
<div id="kind_selector" <%= display? @config_template.snippet %>>
|
||
<%= select_f f, :template_kind_id, TemplateKind.all, :id, :name, {:include_blank => true}, {:label => _("Type")} %>
|
Also available in: Unified diff
fixes #5038 - remove empty label causing template edit box indentation
(cherry picked from commit a33142b9cad0f15152c6ec683d7e7372350e9acc)