-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathsidebar.php
More file actions
39 lines (33 loc) · 1.86 KB
/
sidebar.php
File metadata and controls
39 lines (33 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="htop"></div><h3 class="l3-title mx-3"><?php echo tr('Graph') ?> </h3><table class="table table-condensed mx-3" id="feeds" style="width: 90%;"></table>
<div id="my_graphs" class="px-3" v-cloak>
<h4>
<a href="#" @click.prevent="collapsed=!collapsed" :class="{'collapsed': collapsed}">
<?php echo tr('My Graphs') ?>
<span class="arrow arrow-down pull-right"></span>
</a>
</h4>
<div v-if="!collapsed">
<form @submit.prevent>
<select id="graph-select" v-model="selected">
<option value="-1">{{ messages.select }} :</option>
<option v-for="(item, index) in graphs" :value="index">[#{{item.id}}] {{item.name}}</option>
</select>
<h5><?php echo tr('Graph Name') ?>:</h5>
<input id="graphName" v-model="graphName" type="text" placeholder="<?php echo tr('Graph Name') ?>">
<input id="lookAhead" v-model="lookAhead" type="text" placeholder="<?php echo _('Look Ahead (s)') ?>">
<small v-if="selected > -1" class="help-block text-light">
<?php echo tr('Selected graph id') ?>: {{ graphs[selected].id }}
</small>
<small v-if="selected < 0" class="help-block text-light">
<?php echo tr('None selected') ?>
</small>
<button type="button" class="btn" @click="deleteGraph" :class="{'d-none': selected === ''}"><?php echo tr('Delete') ?></button>
<button :disabled="saveButtonDisabled" class="btn" @click="saveGraph"><?php echo tr('Save') ?></button>
<transition name="fade">
<p v-if="status!==''">
<small class="text-white pt-2 d-inline-block">{{status.substr(0, 1).toUpperCase() + status.substr(1)}}</small>
</p>
</transition>
</form>
</div>
</div>