You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2018/09/07 08:48:14 UTC

[cloudstack] branch 4.11 updated: ui: Fixes: #2831 rendering of scheduled snapshots widget (#2836)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.11 by this push:
     new a387272  ui: Fixes: #2831 rendering of scheduled snapshots widget (#2836)
a387272 is described below

commit a387272288df4b7def373d7fd2bb6ea87b3ff11b
Author: ernjvr <er...@gmail.com>
AuthorDate: Fri Sep 7 10:48:07 2018 +0200

    ui: Fixes: #2831 rendering of scheduled snapshots widget (#2836)
    
    In the UI, when Setting up a recurring snapshot for a volume and clicking 'Add', the newly added scheduled snapshot entry is not displayed in the 'Scheduled Snapshots' table. Also, the 'Keep' input field does not limit the length of a number that can be added. This causes the API not return an error that the value is invalid.
    
    After adding a recurring snapshot, it must display in the 'Scheduled Snapshots' table. The 'Keep' input field must restrain a user from entering too large of a number.
---
 ui/index.html | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/ui/index.html b/ui/index.html
index 6b3eef8..3d503c8 100644
--- a/ui/index.html
+++ b/ui/index.html
@@ -1583,7 +1583,7 @@
                                 <div class="field maxsnaps">
                                     <div class="name"><translate key="label.keep" /></div>
                                     <div class="value">
-                                        <input type="text" name="maxsnaps" class="required" />
+                                        <input type="text" name="maxsnaps" class="required" maxlength="9"/>
                                         <label for="maxsnaps"><translate key="label.snapshots" /></label>
                                     </div>
                                 </div>
@@ -1686,34 +1686,34 @@
                         <tbody>
                             <!-- Hourly -->
                             <tr class="hourly">
-                                <td class="time"><translate key="label.time.colon" /> <span></span> <translate key="label.min.past.the.hr" /></td>
+                                <td class="time"><translate key="label.time.colon"></translate> <span></span> <translate key="label.min.past.the.hr"></translate></td>
                                 <td class="day-of-week"><span></span></td>
-                                <td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
-                                <td class="keep"><translate key="label.keep.colon" /> <span></span></td>
+                                <td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
+                                <td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
                                 <td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
                             </tr>
                             <!-- Daily -->
                             <tr class="daily">
-                                <td class="time"><translate key="label.time.colon" /> <span></span></td>
+                                <td class="time"><translate key="label.time.colon"></translate> <span></span></td>
                                 <td class="day-of-week"><span></span></td>
-                                <td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
-                                <td class="keep"><translate key="label.keep.colon" /> <span></span></td>
+                                <td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
+                                <td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
                                 <td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
                             </tr>
                             <!-- Weekly -->
                             <tr class="weekly">
-                                <td class="time"><translate key="label.time.colon" /> <span></span></td>
-                                <td class="day-of-week"><translate key="label.every" /> <span></span></td>
-                                <td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
-                                <td class="keep"><translate key="label.keep.colon" /> <span></span></td>
+                                <td class="time"><translate key="label.time.colon"></translate> <span></span></td>
+                                <td class="day-of-week"><translate key="label.every"></translate> <span></span></td>
+                                <td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
+                                <td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
                                 <td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
                             </tr>
                             <!-- Monthly -->
                             <tr class="monthly">
-                                <td class="time"><translate key="label.time.colon" /> <span></span></td>
-                                <td class="day-of-week"><translate key="label.day" /> <span></span> <translate key="label.of.month" /></td>
-                                <td class="timezone"><translate key="label.timezone.colon" /><br/><span></span></td>
-                                <td class="keep"><translate key="label.keep.colon" /> <span></span></td>
+                                <td class="time"><translate key="label.time.colon"></translate> <span></span></td>
+                                <td class="day-of-week"><translate key="label.day"></translate> <span></span> <translate key="label.of.month"></translate></td>
+                                <td class="timezone"><translate key="label.timezone.colon"></translate><br/><span></span></td>
+                                <td class="keep"><translate key="label.keep.colon"></translate> <span></span></td>
                                 <td class="actions"><div class="action destroy"><span class="icon">&nbsp;</span></div></td>
                             </tr>
                         </tbody>