Moved add wiki page form to top of page list to address issue https://github.com/redmatrix/hubzilla/issues/719
This commit is contained in:
parent
0b272264ea
commit
6239a27288
@ -3,6 +3,23 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
<h3>{{$header}}</h3>
|
<h3>{{$header}}</h3>
|
||||||
<ul class="nav nav-pills flex-column">
|
<ul class="nav nav-pills flex-column">
|
||||||
|
{{if $canadd}}
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#" onclick="wiki_show_new_page_form(); return false;"><i class="fa fa-plus-circle"></i> {{$addnew}}</a></li>
|
||||||
|
{{/if}}
|
||||||
|
{{if $canadd}}
|
||||||
|
<div id="new-page-form-wrapper" class="sub-menu" style="display:none;">
|
||||||
|
<form id="new-page-form" action="wiki/{{$channel_address}}/create/page" method="post" >
|
||||||
|
<input type="hidden" name="resource_id" value="{{$resource_id}}">
|
||||||
|
{{if $typelock}}
|
||||||
|
<input type="hidden" name="mimetype" value="{{$lockedtype}}">
|
||||||
|
{{else}}
|
||||||
|
{{$mimetype}}
|
||||||
|
{{/if}}
|
||||||
|
{{include file="field_input.tpl" field=$pageName}}
|
||||||
|
<button id="new-page-submit" class="btn btn-primary" type="submit" name="submit" >Submit</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
{{if $pages}}
|
{{if $pages}}
|
||||||
{{foreach $pages as $page}}
|
{{foreach $pages as $page}}
|
||||||
<li class="nav-item nav-item-hack" id="{{$page.link_id}}">
|
<li class="nav-item nav-item-hack" id="{{$page.link_id}}">
|
||||||
@ -13,24 +30,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $canadd}}
|
|
||||||
<li class="nav-item"><a class="nav-link" href="#" onclick="wiki_show_new_page_form(); return false;"><i class="fa fa-plus-circle"></i> {{$addnew}}</a></li>
|
|
||||||
{{/if}}
|
|
||||||
</ul>
|
</ul>
|
||||||
{{if $canadd}}
|
|
||||||
<div id="new-page-form-wrapper" class="sub-menu" style="display:none;">
|
|
||||||
<form id="new-page-form" action="wiki/{{$channel_address}}/create/page" method="post" >
|
|
||||||
<input type="hidden" name="resource_id" value="{{$resource_id}}">
|
|
||||||
{{if $typelock}}
|
|
||||||
<input type="hidden" name="mimetype" value="{{$lockedtype}}">
|
|
||||||
{{else}}
|
|
||||||
{{$mimetype}}
|
|
||||||
{{/if}}
|
|
||||||
{{include file="field_input.tpl" field=$pageName}}
|
|
||||||
<button id="new-page-submit" class="btn btn-primary" type="submit" name="submit" >Submit</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{if ! $refresh}}
|
{{if ! $refresh}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user