Advertisement
chinezan

Untitled

Dec 4th, 2017
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.75 KB | None | 0 0
  1. # skim template for new question form
  2. form class="new_question" id="new_question" enctype="multipart/form-data" action="/questions" accept-charset="UTF-8" data-remote="true" method="post" style="display: block;"
  3.   input name="utf8" type="hidden" value="✓"
  4.   table
  5.     tbody
  6.       tr
  7.         td
  8.           label for="question_title" Заголовок
  9.         td
  10.           input type="text" name="question[title]" id="question_title"
  11.       tr
  12.         td
  13.           label for="question_body" Содержание
  14.         td
  15.           textarea name="question[body]" id="question_body"
  16.       tr
  17.         td colspan="6"
  18.           p
  19.             a data-target=".attaches" class="add_nested_fields" data-association="attaches" data-blueprint-id="attaches_fields_blueprint" href="javascript:void(0)" Add an attach
  20.           p Вложения:
  21.           div class="attaches"
  22.       tr
  23.         td class="create_question"
  24.           input type="submit" name="commit" value="Create" data-disable-with="Create"
  25.         td class="cancel_create_question"
  26.           a href="/questions" Cancel
  27.     div id="attaches_fields_blueprint" style="display: none" data-blueprint="<div class=&quot;fields&quot;><label for=&quot;question_attaches_attributes_new_attaches_file&quot;>File</label><input type=&quot;file&quot; name=&quot;question[attaches_attributes][new_attaches][file]&quot; id=&quot;question_attaches_attributes_new_attaches_file&quot; /><input type=&quot;hidden&quot; value=&quot;false&quot; name=&quot;question[attaches_attributes][new_attaches][_destroy]&quot; id=&quot;question_attaches_attributes_new_attaches__destroy&quot; /><a class=&quot;remove_nested_fields&quot; data-association=&quot;attaches&quot; href=&quot;javascript:void(0)&quot;>Remove this file</a></div>">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement