provide/fix adminpage div container for all admin pages

This commit is contained in:
rabuzarus 2018-02-07 16:23:19 +01:00
parent 764a9be90a
commit 96d24af20f
5 changed files with 164 additions and 153 deletions

View file

@ -2,10 +2,11 @@
<h1>{{$title}} - {{$page}}</h1> <h1>{{$title}} - {{$page}}</h1>
<p>{{$intro1}}</p> <p>{{$intro1}}</p>
<p>{{$intro2}}</p> <p>{{$intro2}}</p>
</div>
<form action="{{$baseurl}}/admin/deleteitem" method="post"> <form action="{{$baseurl}}/admin/deleteitem" method="post">
<input type="hidden" name="form_security_token" value="{{$form_security_token}}"> <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
{{include file="field_input.tpl" field=$deleteitemguid}} {{include file="field_input.tpl" field=$deleteitemguid}}
<div class="submit"><input type="submit" name="page_deleteitem_submit" value="{{$submit}}" /></div> <div class="submit"><input type="submit" name="page_deleteitem_submit" value="{{$submit}}" /></div>
</form> </form>
</div>

View file

@ -1,12 +1,16 @@
<script src="{{$baseurl}}/vendor/asset/Chart-js/dist/Chart.min.js"></script> <script src="{{$baseurl}}/vendor/asset/Chart-js/dist/Chart.min.js"></script>
<div id="adminpage"> <div id="adminpage">
<h1>{{$title}} - {{$page}}</h1> <h1>{{$title}} - {{$page}}</h1>
<canvas id="FederationChart" class="federation-graph" width="320" height="320"></canvas> <canvas id="FederationChart" class="federation-graph" width="320" height="320"></canvas>
<p>{{$intro}}</p> <p>{{$intro}}</p>
{{if not $autoactive}} {{if not $autoactive}}
<p class="error-message">{{$hint}}</p> <p class="error-message">{{$hint}}</p>
{{/if}} {{/if}}
<p>{{$legendtext}}</p> <p>{{$legendtext}}</p>
<ul> <ul>
{{foreach $counts as $c}} {{foreach $counts as $c}}
{{if $c[0]['total'] > 0}} {{if $c[0]['total'] > 0}}
@ -14,7 +18,7 @@
{{/if}} {{/if}}
{{/foreach}} {{/foreach}}
</ul> </ul>
</div>
<script> <script>
var FedData = { var FedData = {
datasets: [{ datasets: [{
@ -116,3 +120,4 @@ var my{{$c[2]}}DoughnutChart = new Chart(ctx, {
{{/if}} {{/if}}
{{/foreach}} {{/foreach}}
</table> </table>
</div>

View file

@ -1,3 +1,5 @@
<div id="adminpage">
<h1>{{$title}}</h1> <h1>{{$title}}</h1>
<form action="admin/features" method="post" autocomplete="off"> <form action="admin/features" method="post" autocomplete="off">
@ -19,3 +21,4 @@
{{/foreach}} {{/foreach}}
</form> </form>
</div>

View file

@ -1,12 +1,13 @@
<div id="adminpage">
<h2>{{$banner}}</h2> <h2>{{$banner}}</h2>
<div id="failed_updates_desc">{{$desc}}</div> <div id="failed_updates_desc">{{$desc}}</div>
{{if $failed}} {{if $failed}}
{{foreach $failed as $f}} {{foreach $failed as $f}}
<h4>{{$f}}</h4> <h4>{{$f}}</h4>
<ul> <ul>
<li><a href="{{$base}}/admin/dbsync/mark/{{$f}}">{{$mark}}</a></li> <li><a href="{{$base}}/admin/dbsync/mark/{{$f}}">{{$mark}}</a></li>
<li><a href="{{$base}}/admin/dbsync/{{$f}}">{{$apply}}</a></li> <li><a href="{{$base}}/admin/dbsync/{{$f}}">{{$apply}}</a></li>
@ -15,4 +16,4 @@
<hr /> <hr />
{{/foreach}} {{/foreach}}
{{/if}} {{/if}}
</div>

View file

@ -1,7 +1,8 @@
<div id="adminpage">
<h2>{{$banner}}</h2> <h2>{{$banner}}</h2>
<p><a href="{{$base}}/admin/dbsync/check">{{$check}}</a></p> <p><a href="{{$base}}/admin/dbsync/check">{{$check}}</a></p>
<hr /> <hr />
</div>