portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r1662855 [12/12] - in /portals/jetspeed-2/applications/j2-admin/trunk: ./ src/main/java/org/apache/jetspeed/jetapp/ src/main/java/org/apache/jetspeed/jetapp/dto/ src/main/webapp/WEB-INF/ src/main/webapp/jetapp/ src/main/webapp/jetapp/bower_...
Date Fri, 27 Feb 2015 23:34:00 GMT
Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin-edit.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin-edit.jsp?rev=1662855&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin-edit.jsp
(added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin-edit.jsp
Fri Feb 27 23:33:58 2015
@@ -0,0 +1,33 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+<portlet:defineObjects />
+<c:set var="rows" value="${renderRequest.getPreferences().getValue('rowsPerPage', '20')}"/>
+
+<portlet:resourceURL var="readPrefs" id="readPrefs" escapeXml="false" />
+<portlet:resourceURL var="writePrefs" id="writePrefs" escapeXml="false" />
+<portlet:renderURL var="renderURL" escapeXml="false" windowState="normal" portletMode="view"
/>
+
+<div class="panel panel-primary">
+    <div class="panel-heading">Profile Preferences</div>
+    <div ng-controller="ProfilerEditController" class='panel-body'
+         ng-init="init('<%=renderResponse.encodeURL(readPrefs.toString())%>',
+                       '<%=renderResponse.encodeURL(writePrefs.toString())%>', '<%=renderResponse.encodeURL(renderURL.toString())%>')">
+        <form name="profileEditForm" class="form-horizontal app-form" novalidate>
+
+            <div class="form-group">
+                <label for="rowsPerPage" class="col-sm-2 control-label">Rows Per Page</label>
+                <div class="col-sm-10">
+                    <input required type="number" min="5" max="200" class="form-control"
id="rowsPerPage" name='rowsPerPage' ng-model='prefs.rowsPerPage' placeholder="Enter rows range:
5..200" tabindex='1'>
+                </div>
+            </div>
+
+            <%--<button  class="btn btn-primary" ng-click="update(prefs)" ng-disabled="profileEditForm.$invalid
|| isUnchanged(prefs)" tabindex='6'>Submit</button>--%>
+            <button  class="btn btn-primary" ng-click="update(prefs)" ng-disabled="!prefs.rowsPerPage"
tabindex='6'>Submit</button>
+            <alert ng-repeat="alert in alerts" type="alert.type" close="closeAlert($index)">{{alert.msg}}</alert>
+            <pre ng-bind =" contact | json" ng-hide="!debug"> </pre>
+
+        </form>
+    </div>
+</div>
+

Added: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin.jsp?rev=1662855&view=auto
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin.jsp
(added)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/jetapp/views/profiler-admin.jsp
Fri Feb 27 23:33:58 2015
@@ -0,0 +1,44 @@
+<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+<portlet:defineObjects />
+<portlet:resourceURL var="readPrefs" id="readPrefs" escapeXml="false" />
+
+<div ng-controller="ProfilerController" ng-init="init('<%=renderResponse.encodeURL(readPrefs.toString())%>')">
+    <div class="row no-margin">
+
+        <div class="col-sm-9 col-md-9 col-lg-9">
+            <div class="form-group">
+                <div class="col-sm-6 col-md-6 col-lg-6 no-padding">
+                    <input type="text" class="form-control" id="host-identities-search"
placeholder="Filter Profiles" ng-model="filters.term" ng-keyup="search()" />
+                </div>
+                &nbsp;&nbsp;
+                <button type="button" class="btn btn-default" ng-click="editProfile()">
+                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
+                </button>
+                &nbsp;&nbsp;
+                <button type="button" class="btn btn-default" ng-disabled="!options.selectedItems.length"
ng-click="deleteHosts()">
+                    <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
+                </button>
+                &nbsp;&nbsp;
+                <button type="button" class="btn btn-default" ng-disabled="!options.selectedItems.length">
+                    <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
+                </button>
+            </div>
+        </div>
+
+        <div class="col-sm-3 col-md-3 col-lg-3 text-right">
+            <button id="audit-next" type="button" class="btn btn-default" ng-click="getPrevPage()"
ng-disabled="!page">
+                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
+            </button>
+            &nbsp;&nbsp;
+            <button type="button" class="btn btn-default" ng-click="getNextPage()" ng-disabled="(profilesAll.length
<= perPage) || (maxPage == page)">
+                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
+            </button>
+        </div>
+    </div>
+
+    <div class="no-padding">
+        <div id="grid" ng-grid="options"></div>
+    </div>
+</div>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message