plugins/ShinyNewsletters/app/views/shiny_newsletters/admin/templates/new.html.erb
<%= form_for @template, url: shiny_newsletters.templates_path, method: :post do |f| %>
<p>
<%= f.label :name %>
<br><%= f.text_field :name %>
</p>
<p>
<%= f.label :description %>
<br><%= f.text_field :description %>
</p>
<p>
<%= f.label :filename, 'Template file' %>
<br><%= f.select :filename, ShinyNewsletters::Template.available_templates %>
</p>
<p class="top-margin">
<%= submit_tag t( 'add' ) %>
</p>
<% end %>