Files
danbooru/app/views/dtext/_form.html.erb
evazion 50b0b79891 comments: adjust link to howto:comment.
Replace the giant banner about reading the comment guidelines with a
smaller link to howto:comment beneath the comment text box.
2020-03-24 18:32:30 -05:00

20 lines
774 B
Plaintext

<%# name, input_id, input_name, preview_id, value, type %>
<div class="input text optional <%= classes %>">
<label class="text optional" for="<%= input_id %>"><%= name %></label>
<div class="dtext-previewable">
<% if type == "text" %>
<textarea id="<%= input_id %>" class="text optional" rows="20" name="<%= input_name %>" cols="30"><%= value %></textarea>
<% else %>
<input type="text" id="<%= input_id %>" class="text optional" name="<%= input_name %>" value="<%= value %>">
<% end %>
<div id="<%= preview_id %>" class="dtext-preview prose"></div>
</div>
<span class="hint">
<%= link_to "Formatting help", dtext_help_path, remote: true, method: :get %>.
<% if hint.present? %>
<%= hint %>.
<% end %>
</span>
</div>