|
@@ -9,23 +9,21 @@
|
|
|
</div>
|
|
</div>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
<div id="form-box" class="row">
|
|
<div id="form-box" class="row">
|
|
|
- <div class="col-md-6">
|
|
|
|
|
- <form action="{{ path }}/edit" method="post" class="">
|
|
|
|
|
- <textarea name="pageForm[body]" class="form-control form-body-height" id="form-body">{% if pageForm.body %}{{ pageForm.body }}{% elseif not revision.body %}# {{ path|path2name }}{% else %}{{ revision.body }}{% endif %}</textarea>
|
|
|
|
|
|
|
+ <form action="{{ path }}/edit" method="post" class="col-md-6">
|
|
|
|
|
+ <textarea name="pageForm[body]" class="form-control form-body-height" id="form-body">{% if pageForm.body %}{{ pageForm.body }}{% elseif not revision.body %}# {{ path|path2name }}{% else %}{{ revision.body }}{% endif %}</textarea>
|
|
|
|
|
|
|
|
- <input type="hidden" name="pageForm[format]" value="markdown" id="form-format">
|
|
|
|
|
- <input type="hidden" name="pageForm[currentRevision]" value="{{ pageForm.currentRevision|default(revision._id.toString()) }}">
|
|
|
|
|
- <div class="form-submit-group form-group form-inline">
|
|
|
|
|
- <select name="pageForm[grant]" class="form-control">
|
|
|
|
|
- {% for grantId, grantLabel in consts.pageGrants %}
|
|
|
|
|
- <option value="{{ grantId }}" {% if pageForm.grant|default(page.grant) == grantId %}selected{% endif %}>{{ grantLabel }}</option>
|
|
|
|
|
- {% endfor %}
|
|
|
|
|
- </select>
|
|
|
|
|
|
|
+ <input type="hidden" name="pageForm[format]" value="markdown" id="form-format">
|
|
|
|
|
+ <input type="hidden" name="pageForm[currentRevision]" value="{{ pageForm.currentRevision|default(revision._id.toString()) }}">
|
|
|
|
|
+ <div class="form-submit-group form-group form-inline">
|
|
|
|
|
+ <select name="pageForm[grant]" class="form-control">
|
|
|
|
|
+ {% for grantId, grantLabel in consts.pageGrants %}
|
|
|
|
|
+ <option value="{{ grantId }}" {% if pageForm.grant|default(page.grant) == grantId %}selected{% endif %}>{{ grantLabel }}</option>
|
|
|
|
|
+ {% endfor %}
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
- <input type="submit" class="btn btn-primary" id="edit-form-submit" value="ページを更新" />
|
|
|
|
|
- </div>
|
|
|
|
|
- </form>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <input type="submit" class="btn btn-primary" id="edit-form-submit" value="ページを更新" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </form>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
<div id="preview-body" class="wiki preview-body">
|
|
<div id="preview-body" class="wiki preview-body">
|
|
|
</div>
|
|
</div>
|