diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-01 21:20:49 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-01 21:20:49 -0400 |
commit | 95b96692130e0a949375e133c1aa879efd0cfb2e (patch) | |
tree | c3845afd18db5be261f8881e3d9889aedbfebf7a /view | |
parent | 7fac859fbd40303741a9f862f78561739b8ce358 (diff) | |
download | volse-hubzilla-95b96692130e0a949375e133c1aa879efd0cfb2e.tar.gz volse-hubzilla-95b96692130e0a949375e133c1aa879efd0cfb2e.tar.bz2 volse-hubzilla-95b96692130e0a949375e133c1aa879efd0cfb2e.zip |
Create form on admin/plugins page to add plugin git repo using PHPGit
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/admin_plugins.tpl | 19 | ||||
-rw-r--r-- | view/tpl/admin_plugins_addrepo.tpl | 8 |
2 files changed, 23 insertions, 4 deletions
diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl index 4b91f9e46..1493d13a4 100755 --- a/view/tpl/admin_plugins.tpl +++ b/view/tpl/admin_plugins.tpl @@ -1,6 +1,16 @@ -<div class="generic-content-wrapper-styled" id='adminpage'> - <h1>{{$title}} - {{$page}}</h1> - +<div class="generic-content-wrapper"> + <div class="section-title-wrapper"> + <div class="pull-right"> + <button class="btn btn-success btn-xs" onclick="openClose('form');">{{$addrepo}}</button> + </div> + <h2 id="title">{{$title}} - {{$page}}</h2> + <div class="clear"></div> + </div> + <div id="form" class="section-content-tools-wrapper"{{if !$expandform}} style="display:none;"{{/if}}> + {{$form}} + </div> + <div class="clear"></div> + <div class="section-content-wrapper-np"> <ul id='pluginslist'> {{foreach $plugins as $p}} <li class='plugin {{$p.1}}'> @@ -16,4 +26,5 @@ </li> {{/foreach}} </ul> -</div> + </div> +</div>
\ No newline at end of file diff --git a/view/tpl/admin_plugins_addrepo.tpl b/view/tpl/admin_plugins_addrepo.tpl new file mode 100644 index 000000000..f6264f879 --- /dev/null +++ b/view/tpl/admin_plugins_addrepo.tpl @@ -0,0 +1,8 @@ +<form id="add-plugin-repo-form" action="{{$post}}" method="post" > + + <p class="descriptive-text">{{$desc}}</p> + {{include file="field_input.tpl" field=$repoURL}} + <div class="btn-group pull-right"> + <button id="add-plugin-repo-submit" class="btn btn-primary" type="submit" name="submit">{{$submit}}</button> + </div> +</form> |