Skip to content

Commit

Permalink
added to field to view and added a file I forgot to add from prev mig…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
ArushC committed Feb 18, 2024
1 parent 2bab1d0 commit b1173d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/email_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# required :boolean default(FALSE)
# subject :string
# title :string
# to :string
# created_at :datetime not null
# updated_at :datetime not null
#
Expand Down
5 changes: 4 additions & 1 deletion app/views/email_templates/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<%# This part of the page is the email template form %>
<%= form_with(model: email_template, local: true) do |form| %>
<div class="form">
<label for="email_template_title"><h3>Title</h3></label>
<%= form.text_field :title, class: "form-control", readonly: email_template.required? %>
<label for="email_template_to"><h3>To</h3></label>
<%= form.text_field :to, class: "form-control" %>
<label for="email_template_subject"><h3>Subject</h3></label>
<%= form.text_field :subject, class: "form-control" %>
<label for="email_template_body"><h3>Body</h3></label>
Expand All @@ -12,7 +15,7 @@
<%= form.submit "Submit", class: "btn btn-primary" %>
</div>
<% end %>
<%# This renders the section on "Allowed Tags" %>
<%= render 'liquid_fields' %>

<script type="text/javascript">
Expand Down

0 comments on commit b1173d2

Please sign in to comment.