From: Andre Teodoro <andreteodoro.work(a)gmail.com>
Signed-off-by: Andre Teodoro <andreteodoro.work(a)gmail.com>
---
ui/css/src/modules/_administration.scss | 30 ++++++++++++----
ui/js/host-admin.js | Bin 35177 -> 34874 bytes
ui/pages/host-admin.html.tmpl | 62 ++++++++++++++++++++------------
3 files changed, 63 insertions(+), 29 deletions(-)
diff --git a/ui/css/src/modules/_administration.scss
b/ui/css/src/modules/_administration.scss
index 2a79dce..84479f1 100644
--- a/ui/css/src/modules/_administration.scss
+++ b/ui/css/src/modules/_administration.scss
@@ -17,13 +17,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
-
#administration-root-container {
- .fa {
- margin-left: 20px;
- font-size: 20px;
- color: #5a595b;
- }
+ // .fa {
+ // margin-left: 20px;
+ // font-size: 20px;
+ // color: #5a595b;
+ // }
h3 {
height: 32px;
padding: 10px 15px;
@@ -369,4 +368,23 @@
width: 10%;
height: auto;
}
+}
+
+#newBakDialog {
+ .del-label {
+ color: #9e9e9e;
+ font-size: 14px;
+ }
+ .fa {
+ padding: 1px 3px;
+ font-size: 18px;
+ margin-left: 0;
+ }
+ .fa-plus-circle {
+ margin-bottom: 5px;
+ }
+ .path-item {
+ display: flex;
+ margin-bottom: 10px;
+ }
}
\ No newline at end of file
diff --git a/ui/js/host-admin.js b/ui/js/host-admin.js
index f34fafd05a11a2f0e7e22f2b9c50f1c980bb8d79..d43bd3c9326be081be832fb3c41d0a0e4a43b460
100644
GIT binary patch
delta 1259
zcmZ`(O>Em_7-p5bIL@Errb*g$tK+0~yvz-q1RZOVZVU$MAV615{7u4%zffzAoyJZ#
zeySeeunTJG!v!t~G$Fx-qV9m;01_8Y{M@)8CO9D>F(jlODt<mYiP~+dCF}j($M5(0
z{hsH2zuz|pzStPpxOM2h&u(2Bh{{=uTzy!(@`$0C_REMaPva_6z<)D?h#n8(CNmc@
z8e-mXE@`Hr<AZh@y9|$amf|RPhVlO8v7Vnpm2miYB!-2-BE&!n7v~jhoMynXXR*!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^8x!?jfi0zwM
V`H;=kS=F+${bXhOu`&L%_zJe6&u;(#
diff --git a/ui/pages/host-admin.html.tmpl b/ui/pages/host-admin.html.tmpl
index 7f4ceda..7e197bf 100644
--- a/ui/pages/host-admin.html.tmpl
+++ b/ui/pages/host-admin.html.tmpl
@@ -87,7 +87,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
<a href="#"
id="newDefaultBakBtn"><i class="fa
fa-file"></i>$_("Generate Default Backup")</a>
</li>
<li role="presentation">
- <a href="#"
id="newCustomBakBtn"><i class="fa
fa-file"></i>$_("New Custom Backup")</a>
+ <a href="#" id="newCustomBakBtn"
data-toggle="modal" data-target="#newBakDialog"><i
class="fa fa-file"></i>$_("New Custom Backup")</a>
</li>
<li role="presentation">
<a href="#" id="batDelBtn"
data-toggle="modal" data-target="#batDelDialog"><i
class="fa fa-minus-circle"></i>$_("Batch Delete")</a>
@@ -262,21 +262,43 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
</div>
<!-- Configuration Backup Modal - Create Custom Backup -->
-<div id="newBakDialog" title='$_("Create a backup")'
class="ginger-dialog">
- <div>$_("Description")</div>
- <div class="crt-bak-section"><input type="text"
class="desc"></div>
- <div class="crt-bak-section">
- <div class="path-pick">
- <div>$_("Path Included")</div>
- <div class="box" id="includeBox"></div>
- </div>
- <div class="path-pick">
- <div>$_("Path Excluded")</div>
- <div class="box" id="excludeBox"></div>
+<div class="modal fade host-modal" id="newBakDialog"
tabindex="-1" role="dialog" labelledby="newBakLabel"
aria-hidden="true">
+ <div class="modal-dialog" role="document">
+ <div class="modal-content" >
+ <div class="modal-header">
+ <h4 class="modal-title">$_("Create a
backup")</h4>
+ </div>
+ <div class="modal-body">
+ <form id="form-backup-add">
+ <div class="form-group">
+ <label
for="description-textbox">$_("Description")</label>
+ <input type="text" class="form-control
input" id="description-textbox" name="description" />
+ </div>
+ </form>
+ <div class="row">
+ <div class="col-md-12">
+ <div class="col-md-6" >
+ <label class="col-md-12">$_("Paths
Included")</label>
+ <span class='add-path-to-include'><a
class="add btn btn-link" href="#"><i class="fa
fa-plus-circle"></i> $_("Add a Path")</a></span>
+ <div id="includeBox"></div>
+ </div>
+ <div class="col-md-6">
+ <label class="col-md-12">$_("Paths
Excluded")</label>
+ <span class='add-path-to-exclude'><a
class="add btn btn-link" href="#"><i class="fa
fa-plus-circle"></i> $_("Add a Path")</a></span>
+ <div id="excludeBox"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <button type="button" id="newBakFormBtn"
class="btn btn-default" data-dismiss="modal"
disabled>$_("Generate Backup")</button>
+ <button type="button" id="newBakFormCancelBtn"
class="btn btn-default"
data-dismiss="modal">$_("Cancel")</button>
+ </div>
</div>
</div>
</div>
+
<!-- Configuration Backup Modal - Batch Delete -->
<div class="modal fade host-modal" id="batDelDialog"
tabindex="-1" role="dialog" labelledby="batDelLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
@@ -314,15 +336,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
</div>
</div>
-<!-- <div id="batDelDialog" class="window modal-content">
- <div class="del-option">
- <input type="radio" name="batDelType"
value="counts_ago" checked>$_("Preserve the latest") <input
type="text" class=""> $_("backups")
- </div>
- <div class="del-option">
- <input type="radio" name="batDelType"
value="days_ago">$_("Preserve the latest") <input
type="text" class="" disabled> $_("days of backups")
- </div>
-</div> -->
-
<!-- SEP Configuration Modal - Add Subscription -->
<div class="modal fade host-modal" id="subscriptionAdd"
tabindex="-1" role="dialog" labelledby="hostsModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
@@ -416,7 +429,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
<span class="column-file">{file}</span><!--
--><span
class="column-timestamp">{timestamp}</span><!--
--><span class="column-download btn btn-link
btn-download"><i class="fa
fa-download"></i>$_("Download")</span><!--
- --><span class="column-delete btn btn-link btn-delete"><i
class="fa fa-minus-circle"></i>$_("Remove")</span>
+ --><span class="column-delete btn btn-link btn-delete "><i
class="fa fa-minus-circle"></i>$_("Remove")</span>
</li>
</script>
<script id="backupTooltip" type="text/html">
@@ -428,7 +441,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
</div>
</script>
<script id="pathItem" type="text/html">
- <div class="path-item"><input type="text"><button
class="add"></button><button
class="delete"></button></div>
+ <div class="path-item">
+ <input type="text" class="form-control input" />
+ <span class="column-delete btn btn-link delete del-label"><i
class="fa fa-minus-circle"></i>$_("Remove")</span>
+ </div>
</script>
<script id="nicItem" type="text/html">
<form class="form-inline">
--
1.9.3
Show replies by date