diff options
Diffstat (limited to 'base/tps/shared/webapps/tps/ui')
24 files changed, 2512 insertions, 0 deletions
diff --git a/base/tps/shared/webapps/tps/ui/activities.html b/base/tps/shared/webapps/tps/ui/activities.html new file mode 100644 index 000000000..0762401fd --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/activities.html @@ -0,0 +1,83 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Activities</strong></li> +</ol> + +<span class="pki-title">Activities</span> +</div> + +<table name="activities"> +<thead> + <tr> + <th class="pki-table-actions" colspan="8"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="activity_selectall" type="checkbox"><label for="activity_selectall"> </label></th> + <th>Activity ID</th> + <th>Token ID</th> + <th>User ID</th> + <th>IP</th> + <th>Operation</th> + <th>Result</th> + <th>Date</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="activity_select" type="checkbox"><label for="activity_select"> </label></td> + <td name="id"><a href="#activities/${id}">${id}</a></td> + <td name="tokenID">${tokenID}</td> + <td name="userID">${userID}</td> + <td name="ip">${ip}</td> + <td name="operation">${operation}</td> + <td name="result">${result}</td> + <td name="date">${date}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="8"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/activity.html b/base/tps/shared/webapps/tps/ui/activity.html new file mode 100644 index 000000000..5ba96a4e1 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/activity.html @@ -0,0 +1,47 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#activities">Activities</a></li> + <li class="active"><strong><span name="title">Activity ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Activity ${id}</span> +</div> + +<div name="activity" class="pki-fields"> +<fieldset> + <label>Activity ID</label> + <input name="id" readonly="readonly"><br> + <label>Token ID</label> + <input name="tokenID" readonly="readonly"><br> + <label>User ID</label> + <input name="userID" readonly="readonly"><br> + <label>IP</label> + <input name="ip" readonly="readonly"><br> + <label>operation</label> + <input name="operation" readonly="readonly"><br> + <label>Result</label> + <input name="result" readonly="readonly"><br> + <label>Date</label> + <input name="date" readonly="readonly"><br> + <label>Message</label> + <input name="message" readonly="readonly"><br> +</fieldset> +</div> diff --git a/base/tps/shared/webapps/tps/ui/audit.html b/base/tps/shared/webapps/tps/ui/audit.html new file mode 100644 index 000000000..3e6cc6cbb --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/audit.html @@ -0,0 +1,134 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Audit Logging</strong></li> +</ol> + +<span class="pki-title">Audit Logging</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +<a name="enable" href="#">Enable</a><a name="disable" href="#" style="display: none;">Disable</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="audit" class="pki-fields"> +<fieldset> + <label>Status</label> + <input name="status" readonly="readonly"> + <br> + <label>Signed</label> + <input name="signed" readonly="readonly"> + <br> + <label>Interval</label> + <input name="interval" readonly="readonly"> + <br> + <label>Buffer Size</label> + <input name="bufferSize" readonly="readonly"> + <br> +</fieldset> +</div> + +<h2>Events</h2> + +<table name="events"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons" style="display: none;"> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="events_selectall" type="checkbox"><label for="events_selectall"> </label></th> + <th class="pki-property-name-column">Name</th> + <th>Value</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="events_select" type="checkbox"><label for="events_select"> </label></td> + <td name="id" class="pki-property-name-column"><a href="/tps/ui/audit/events/${id}">${id}</a></td> + <td name="value">${value}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="event-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Edit Event</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Name</label> + <input name="name" readonly="readonly"><br> + <label>Value</label> + <input name="value" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="add" class="btn btn-primary">Add</button> + <button name="save" class="btn btn-primary">Save</button> + <button name="close" class="btn btn-primary">Close</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/authenticator.html b/base/tps/shared/webapps/tps/ui/authenticator.html new file mode 100644 index 000000000..6da1fbf12 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/authenticator.html @@ -0,0 +1,131 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#authenticators">Authentication Sources</a></li> + <li class="active"><strong><span name="title">Authentication Source ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Authentication Source ${id}</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +<a name="enable" href="#">Enable</a><a name="disable" href="#" style="display: none;">Disable</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="authenticator" class="pki-fields"> +<fieldset> + <label>Source ID</label> + <input name="authenticatorID" readonly="readonly"> + <br> + <label>Status</label> + <input name="status" readonly="readonly"> + <br> +</fieldset> +</div> + +<h2>Properties</h2> + +<table name="properties"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons" style="display: none;"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="authenticator_selectall" type="checkbox"><label for="authenticator_selectall"> </label></th> + <th class="pki-property-name-column">Name</th> + <th>Value</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="authenticator_select" type="checkbox"><label for="authenticator_select"> </label></td> + <td name="id" class="pki-property-name-column"><a href="/tps/ui/authenticators/${parent.id}/properties/${id}">${id}</a></td> + <td name="value">${value}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="property-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Edit Property</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Name</label> + <input name="name" readonly="readonly"><br> + <label>Value</label> + <input name="value" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="add" class="btn btn-primary">Add</button> + <button name="save" class="btn btn-primary">Save</button> + <button name="close" class="btn btn-primary">Close</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/authenticators.html b/base/tps/shared/webapps/tps/ui/authenticators.html new file mode 100644 index 000000000..f9b0b0a28 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/authenticators.html @@ -0,0 +1,74 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Authentication Sources</strong></li> +</ol> +<span class="pki-title">Authentication Sources</span> +</div> + +<table name="authenticators"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="authenticator_selectall" type="checkbox"><label for="authenticator_selectall"> </label></th> + <th>Source ID</th> + <th>Status</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="authenticator_select" type="checkbox"><label for="authenticator_select"> </label></td> + <td name="id"><a href="#authenticators/${id}">${id}</a></td> + <td name="status">${status}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/cert.html b/base/tps/shared/webapps/tps/ui/cert.html new file mode 100644 index 000000000..456f23355 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/cert.html @@ -0,0 +1,49 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#certs">Certificates</a></li> + <li class="active"><strong><span name="title">Certificate ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Certificate ${id}</span> +</div> + +<div name="certificate" class="pki-fields"> +<fieldset> + <label>Certificate ID</label> + <input name="id" readonly="readonly"><br> + <label>Serial Number</label> + <input name="serialNumber" readonly="readonly"><br> + <label>Subject</label> + <input name="subject" readonly="readonly"><br> + <label>Token ID</label> + <input name="tokenID" readonly="readonly"><br> + <label>User ID</label> + <input name="userID" readonly="readonly"><br> + <label>Key Type</label> + <input name="keyType" readonly="readonly"><br> + <label>Status</label> + <input name="status" readonly="readonly"><br> + <label>Created</label> + <input name="createTime" readonly="readonly"><br> + <label>Modified</label> + <input name="modifyTime" readonly="readonly"><br> +</fieldset> +</div> diff --git a/base/tps/shared/webapps/tps/ui/certs.html b/base/tps/shared/webapps/tps/ui/certs.html new file mode 100644 index 000000000..a87c2dd32 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/certs.html @@ -0,0 +1,87 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Certificates</strong></li> +</ol> + +<span class="pki-title">Certificates</span> +</div> + +<table name="certificates"> +<thead> + <tr> + <th class="pki-table-actions" colspan="10"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="cert_selectall" type="checkbox"><label for="cert_selectall"> </label></tdh> + <th>Certificate ID</th> + <th>Serial Number</th> + <th>Subject</th> + <th>Token ID</th> + <th>User ID</th> + <th>Key Type</th> + <th>Status</th> + <th>Create Time</th> + <th>Modify Time</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="cert_select" type="checkbox"><label for="cert_select"> </label></td> + <td name="id"><a href="#certs/${id}">${id}</a></td> + <td name="serialNumber">${serialNumber}</td> + <td name="subject">${subject}</td> + <td name="tokenID">${tokenID}</td> + <td name="userID">${userID}</td> + <td name="keyType">${keyType}</td> + <td name="status">${status}</td> + <td name="createTime">${createTime}</td> + <td name="modifyTime">${modifyTime}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="10"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/config.html b/base/tps/shared/webapps/tps/ui/config.html new file mode 100644 index 000000000..d94a0fa28 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/config.html @@ -0,0 +1,116 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>General Configuration</strong></li> +</ol> + +<span class="pki-title">General Configuration</span></span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<table name="properties"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons" style="display: none;"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="properties_selectall" type="checkbox"><label for="properties_selectall"> </label></th> + <th class="pki-property-name-column">Name</th> + <th>Value</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="properties_select" type="checkbox"><label for="properties_select"> </label></td> + <td name="id" class="pki-property-name-column"><a href="/tps/ui/config/properties/${id}">${id}</a></td> + <td name="value">${value}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="property-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Edit Property</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Name</label> + <input name="name" readonly="readonly"><br> + <label>Value</label> + <input name="value" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="add" class="btn btn-primary">Add</button> + <button name="save" class="btn btn-primary">Save</button> + <button name="close" class="btn btn-primary">Close</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/connector.html b/base/tps/shared/webapps/tps/ui/connector.html new file mode 100644 index 000000000..015a7ac6d --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/connector.html @@ -0,0 +1,131 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#connectors">Subsystem Connections</a></li> + <li class="active"><strong><span name="title">Subsystem Connection ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Subsystem Connection ${id}</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +<a name="enable" href="#">Enable</a><a name="disable" href="#" style="display: none;">Disable</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="connector" class="pki-fields"> +<fieldset> + <label>Connector ID</label> + <input name="connectorID" readonly="readonly"> + <br> + <label>Status</label> + <input name="status" readonly="readonly"> + <br> +</fieldset> +</div> + +<h2>Properties</h2> + +<table name="properties"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons" style="display: none;"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="connector_selectall" type="checkbox"><label for="connector_selectall"> </label></th> + <th class="pki-property-name-column">Name</th> + <th>Value</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="connector_select" type="checkbox"><label for="connector_select"> </label></td> + <td name="id" class="pki-property-name-column"><a href="/tps/ui/connectors/${parent.id}/properties/${id}">${id}</a></td> + <td name="value">${value}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="property-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Edit Property</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Name</label> + <input name="name" readonly="readonly"><br> + <label>Value</label> + <input name="value" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="add" class="btn btn-primary">Add</button> + <button name="save" class="btn btn-primary">Save</button> + <button name="close" class="btn btn-primary">Close</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/connectors.html b/base/tps/shared/webapps/tps/ui/connectors.html new file mode 100644 index 000000000..4d4d59772 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/connectors.html @@ -0,0 +1,75 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Subsystem Connections</strong></li> +</ol> + +<span class="pki-title">Subsystem Connections</span> +</div> + +<table name="connectors"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="connector_selectall" type="checkbox"><label for="connector_selectall"> </label></th> + <th>Connector ID</th> + <th>Status</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="connector_select" type="checkbox"><label for="connector_select"> </label></td> + <td name="id"><a href="#connectors/${id}">${id}</a></td> + <td name="status">${status}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/group.html b/base/tps/shared/webapps/tps/ui/group.html new file mode 100644 index 000000000..493b79488 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/group.html @@ -0,0 +1,125 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#groups">Groups</a></li> + <li class="active"><strong><span name="title">Group ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Group ${id}</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="group" class="pki-fields"> +<fieldset> + <label>Group ID</label> + <input name="groupID" readonly="readonly"><br> + <label>Description</label> + <input name="description" readonly="readonly"><br> +</fieldset> +</div> + +<h2>Members</h2> + +<table name="members"> +<thead> + <tr> + <th class="pki-table-actions" colspan="2"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="members_selectall" type="checkbox"><label for="members_selectall"> </label></th> + <th>User ID</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="members_select" type="checkbox"><label for="members_select"> </label></td> + <td name="id">${id}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="2"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="member-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Group Member</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Group ID</label> + <input name="groupID" readonly="readonly"><br> + <label>User ID</label> + <input name="memberID" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="add" class="btn btn-primary">Add</button> + <button name="close" class="btn btn-primary">Close</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/groups.html b/base/tps/shared/webapps/tps/ui/groups.html new file mode 100644 index 000000000..9f4239db8 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/groups.html @@ -0,0 +1,75 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Groups</strong></li> +</ol> + +<span class="pki-title">Groups</span> +</div> + +<table name="groups"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="group_selectall" type="checkbox"><label for="group_selectall"> </label></th> + <th>Group ID</th> + <th>Description</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="group_select" type="checkbox"><label for="group_select"> </label></td> + <td name="id"><a href="#groups/${id}">${id}</a></td> + <td name="description">${description}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/home.html b/base/tps/shared/webapps/tps/ui/home.html new file mode 100644 index 000000000..8502ca448 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/home.html @@ -0,0 +1,60 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> +</ol> + +<span name="title" class="pki-title">Token Processing Service</span> +</div> + +<div class="panel panel-default"> + <div class="panel-heading"> + <h3 class="panel-title">Token Management</h3> + </div> + <div class="panel-body"> + <a href="#tokens">Tokens</a><br> + <a href="#certs">Certificates</a><br> + <a href="#activities">Activities</a><br> + </div> +</div> + +<div class="panel panel-default"> + <div class="panel-heading"> + <h3 class="panel-title">Account Management</h3> + </div> + <div class="panel-body"> + <a href="#users">Users</a><br> + <a href="#groups">Groups</a><br> + </div> +</div> + +<div class="panel panel-default"> + <div class="panel-heading"> + <h3 class="panel-title">System Management</h3> + </div> + <div class="panel-body"> + <a href="#config">General Configuration</a><br> + <a href="#authenticators">Authentication Sources</a><br> + <a href="#connections">Subsystem Connections</a><br> + <a href="#profiles">Profiles</a><br> + <a href="#profile-mappings">Profile Mappings</a><br> + <a href="#audit">Audit Logging</a><br> + <a href="#selftests">Self Tests</a><br> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/index.html b/base/tps/shared/webapps/tps/ui/index.html new file mode 100644 index 000000000..eddceefd7 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/index.html @@ -0,0 +1,429 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<html> +<head> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="/pki/css/patternfly.css" rel="stylesheet" media="screen, print"> + <link href="/pki/css/pki-ui.css" rel="stylesheet" type="text/css"> + <script src="/pki/js/jquery.js"></script> + <script src="/pki/js/underscore.js"></script> + <script src="/pki/js/backbone.js"></script> + <script src="/pki/js/bootstrap.js"></script> + <script src="/pki/js/patternfly.js"></script> + <script src="/pki/js/pki-ui.js"></script> + <script src="/tps/js/tps.js"></script> + <script src="/tps/js/account.js"></script> + <script src="/tps/js/activity.js"></script> + <script src="/tps/js/audit.js"></script> + <script src="/tps/js/authenticator.js"></script> + <script src="/tps/js/cert.js"></script> + <script src="/tps/js/config.js"></script> + <script src="/tps/js/connector.js"></script> + <script src="/tps/js/group.js"></script> + <script src="/tps/js/profile.js"></script> + <script src="/tps/js/profile-mapping.js"></script> + <script src="/tps/js/selftest.js"></script> + <script src="/tps/js/token.js"></script> + <script src="/tps/js/user.js"></script> + <script> +$(function() { + + var account = new Account(); + account.login({ + success: function(data, textStatus, jqXHR) { + var user = $("#user"); + user.text(data.FullName); + }, + error: function() { + window.location.href = "/tps"; + } + }); + + var content = $("#content"); + + var router = new Backbone.Router(); + + router.route("", "home", function() { + new Page({ + el: content, + url: "home.html" + }).open(); + }); + + router.route("activities", "activities", function() { + new ActivitiesPage({ + el: content, + url: "activities.html" + }).open(); + }); + + router.route("activities/:id", "activity", function(id) { + new ActivityPage({ + el: content, + url: "activity.html", + model: new ActivityModel({ id: id }) + }).open(); + }); + + router.route("audit", "audit", function() { + new AuditPage({ + el: content, + url: "audit.html" + }).open(); + }); + + router.route("authenticators", "authenticators", function() { + new AuthenticatorsPage({ + el: content, + url: "authenticators.html" + }).open(); + }); + + router.route("authenticators/:id", "authenticator", function(id) { + new ConfigEntryPage({ + el: content, + url: "authenticator.html", + model: new AuthenticatorModel({ id: id }) + }).open(); + }); + + router.route("new-authenticator", "new-authenticator", function() { + new ConfigEntryPage({ + el: content, + url: "authenticator.html", + model: new AuthenticatorModel(), + mode: "add", + title: "New Authenticator", + editable: ["authenticatorID"], + parentHash: "#authenticators" + }).open(); + }); + + router.route("certs", "certs", function() { + new CertificatesPage({ + el: content, + url: "certs.html" + }).open(); + }); + + router.route("certs/:id", "cert", function(id) { + new CertificatePage({ + el: content, + url: "cert.html", + model: new CertificateModel({ id: id }) + }).open(); + }); + + router.route("config", "config", function() { + new ConfigPage({ + el: content, + url: "config.html" + }).open(); + }); + + router.route("connectors", "connectors", function() { + new ConnectorsPage({ + el: content, + url: "connectors.html" + }).open(); + }); + + router.route("connectors/:id", "connector", function(id) { + new ConfigEntryPage({ + el: content, + url: "connector.html", + model: new ConnectorModel({ id: id }) + }).open(); + }); + + router.route("new-connector", "new-connector", function() { + new ConfigEntryPage({ + el: content, + url: "connector.html", + model: new ConnectorModel(), + mode: "add", + title: "New Connector", + editable: ["connectorID"], + parentHash: "#connectors" + }).open(); + }); + + router.route("groups", "groups", function() { + new GroupsPage({ + el: content, + url: "groups.html" + }).open(); + }); + + router.route("groups/:id", "group", function(id) { + new GroupPage({ + el: content, + url: "group.html", + model: new GroupModel({ id: id }), + editable: ["description"] + }).open(); + }); + + router.route("new-group", "new-group", function() { + new GroupPage({ + el: content, + url: "group.html", + model: new GroupModel(), + mode: "add", + title: "New Group", + editable: ["groupID", "description"], + parentHash: "#groups" + }).open(); + }); + + router.route("profiles", "profiles", function() { + new ProfilesPage({ + el: content, + url: "profiles.html" + }).open(); + }); + + router.route("profiles/:id", "profile", function(id) { + new ConfigEntryPage({ + el: content, + url: "profile.html", + model: new ProfileModel({ id: id }) + }).open(); + }); + + router.route("new-profile", "new-profile", function() { + new ConfigEntryPage({ + el: content, + url: "profile.html", + model: new ProfileModel(), + mode: "add", + title: "New Profile", + editable: ["profileID"], + parentHash: "#profiles" + }).open(); + }); + + router.route("profile-mappings", "profile-mappings", function() { + new ProfileMappingsPage({ + el: content, + url: "profile-mappings.html" + }).open(); + }); + + router.route("profile-mappings/:id", "profile-mapping", function(id) { + new ConfigEntryPage({ + el: content, + url: "profile-mapping.html", + model: new ProfileMappingModel({ id: id }), + }).open(); + }); + + router.route("new-profile-mapping", "new-profile-mapping", function() { + new ConfigEntryPage({ + el: content, + url: "profile-mapping.html", + model: new ProfileMappingModel(), + mode: "add", + title: "New Profile Mapping", + editable: ["profileMappingID"], + parentHash: "#profile-mappings" + }).open(); + }); + + router.route("selftests", "selftests", function() { + new SelfTestsPage({ + el: content, + url: "selftests.html" + }).open(); + }); + + router.route("selftests/:id", "selftest", function(id) { + new SelfTestPage({ + el: content, + url: "selftest.html", + model: new SelfTestModel({ id: id }) + }).open(); + }); + + router.route("tokens", "tokens", function() { + new TokensPage({ + el: content, + url: "tokens.html" + }).open(); + }); + + router.route("tokens/:id", "token", function(id) { + new TokenPage({ + el: content, + url: "token.html", + model: new TokenModel({ id: id }), + editable: ["userID", "type", "appletID", "keyInfo", "policy"] + }).open(); + }); + + router.route("new-token", "new-token", function() { + new TokenPage({ + el: content, + url: "token.html", + model: new TokenModel(), + mode: "add", + title: "New Token", + editable: ["tokenID", "userID", "type", "appletID", "keyInfo", "policy"], + parentHash: "#tokens" + }).open(); + }); + + router.route("users", "users", function() { + new UsersPage({ + el: content, + url: "users.html" + }).open(); + }); + + router.route("users/:id", "user", function(id) { + new UserPage({ + el: content, + url: "user.html", + model: new UserModel({ id: id }), + editable: ["fullName", "email", "tpsProfiles"] + }).open(); + }); + + router.route("new-user", "new-user", function() { + new UserPage({ + el: content, + url: "user.html", + model: new UserModel(), + mode: "add", + title: "New User", + editable: ["userID", "fullName", "email", "tpsProfiles"], + parentHash: "#users" + }).open(); + }); + + router.route("logout", "logout", function() { + // destroy server session + account.logout({ + success: function() { + // clear browser cache + PKI.logout({ + success: function() { + window.location.href = "/tps"; + }, + error: function() { + alert("Logout failed. Please close the browser."); + } + }); + }, + error: function() { + alert("Logout failed. Please close the browser."); + } + }); + }); + + Backbone.history.start(); +}); + </script> +</head> +<body> + +<nav id="navigation" class="navbar navbar-default navbar-pf" role="navigation"> +<div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a class="navbar-brand" href="/tps"> + <b>Token Processing Service</b> + </a> +</div> +<div class="collapse navbar-collapse navbar-collapse-1"> + <ul class="nav navbar-nav navbar-utility"> + <li><a href="#">Status</a></li> + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"> + <span class="pficon pficon-user"></span> + <span id="user"></span><b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="#logout">Logout</a></li> + </ul> + </li> + </ul> + <ul class="nav navbar-nav navbar-primary"> + <li><a href="#"><span class="glyphicon glyphicon-home"></span> Home</a></li> + <li><a href="#tokens">Tokens</a></li> + <li><a href="#certs">Certificates</a></li> + <li><a href="#activities">Activities</a></li> + <li class="dropdown context"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"> + Accounts + <b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="#users">Users</a></li> + <li><a href="#groups">Groups</a></li> + </ul> + </li> + <li class="dropdown context"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"> + System + <b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <li><a href="#config">General Configuration</a></li> + <li><a href="#authenticators">Authentication Sources</a></li> + <li><a href="#connectors">Subsystem Connections</a></li> + <li><a href="#profiles">Profiles</a></li> + <li><a href="#profile-mappings">Profile Mappings</a></li> + <li><a href="#audit">Audit Logging</a></li> + <li><a href="#selftests">Self Tests</a></li> + </ul> + </li> + </ul> +</div> +</nav> + +<div id="content"> +</div> + +<div id="error-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Error</h4> + </div> + <div class="modal-body"> + <fieldset> + <span name="content"></span> + </fieldset> + </div> + <div class="modal-footer"> + <button name="close" class="btn btn-primary">Close</button> + </div> + </div> + </div> +</div> + +</body> +</html> diff --git a/base/tps/shared/webapps/tps/ui/profile-mapping.html b/base/tps/shared/webapps/tps/ui/profile-mapping.html new file mode 100644 index 000000000..139d21262 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/profile-mapping.html @@ -0,0 +1,131 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#profile-mappings">Profile Mappings</a></li> + <li class="active"><strong><span name="title">Profile Mapping ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Profile Mapping ${id}</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +<a name="enable" href="#">Enable</a><a name="disable" href="#" style="display: none;">Disable</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="profile-mapping" class="pki-fields"> +<fieldset> + <label>Profile Mapping ID</label> + <input name="profileMappingID" readonly="readonly"> + <br> + <label>Status</label> + <input name="status" readonly="readonly"> + <br> +</fieldset> +</div> + +<h2>Properties</h2> + +<table name="properties"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons" style="display: none;"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="profile_selectall" type="checkbox"><label for="profile_selectall"> </label></th> + <th class="pki-property-name-column">Name</th> + <th>Value</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="profile_select" type="checkbox"><label for="profile_select"> </label></td> + <td name="id" class="pki-property-name-column"><a href="/tps/ui/profile-mappings/${parent.id}/properties/${id}">${id}</a></td> + <td name="value">${value}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="property-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Edit Property</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Name</label> + <input name="name" readonly="readonly"><br> + <label>Value</label> + <input name="value" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="add" class="btn btn-primary">Add</button> + <button name="save" class="btn btn-primary">Save</button> + <button name="close" class="btn btn-primary">Close</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/profile-mappings.html b/base/tps/shared/webapps/tps/ui/profile-mappings.html new file mode 100644 index 000000000..dc797bc18 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/profile-mappings.html @@ -0,0 +1,75 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Profile Mappings</strong></li> +</ol> + +<span class="pki-title">Profile Mappings</span> +</div> + +<table name="profile-mappings"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="profile_mapping_selectall" type="checkbox"><label for="profile_mapping_selectall"> </label></th> + <th>Profile Mapping ID</th> + <th>Status</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="profile_mapping_select" type="checkbox"><label for="profile_mapping_select"> </label></td> + <td name="id"><a href="#profile-mappings/${id}">${id}</a></td> + <td name="status">${status}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/profile.html b/base/tps/shared/webapps/tps/ui/profile.html new file mode 100644 index 000000000..61811bcc3 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/profile.html @@ -0,0 +1,131 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#profiles">Profiles</a></li> + <li class="active"><strong><span name="title">Profile ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Profile ${id}</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +<a name="enable" href="#">Enable</a><a name="disable" href="#" style="display: none;">Disable</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="profile" class="pki-fields"> +<fieldset> + <label>Profile ID</label> + <input name="profileID" readonly="readonly"> + <br> + <label>Status</label> + <input name="status" readonly="readonly"> + <br> +</fieldset> +</div> + +<h2>Properties</h2> + +<table name="properties"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons" style="display: none;"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="profile_selectall" type="checkbox"><label for="profile_selectall"> </label></th> + <th class="pki-property-name-column">Name</th> + <th>Value</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="profile_select" type="checkbox"><label for="profile_select"> </label></td> + <td name="id" class="pki-property-name-column"><a href="/tps/ui/profiles/${parent.id}/properties/${id}">${id}</a></td> + <td name="value">${value}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="property-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Edit Property</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Name</label> + <input name="name" readonly="readonly"><br> + <label>Value</label> + <input name="value" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="add" class="btn btn-primary">Add</button> + <button name="save" class="btn btn-primary">Save</button> + <button name="close" class="btn btn-primary">Close</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/profiles.html b/base/tps/shared/webapps/tps/ui/profiles.html new file mode 100644 index 000000000..00218e5f7 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/profiles.html @@ -0,0 +1,75 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Profiles</strong></li> +</ol> + +<span class="pki-title">Profiles</span> +</div> + +<table name="profiles"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="profile_selectall" type="checkbox"><label for="profile_selectall"> </label></th> + <th>Profile ID</th> + <th>Status</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="profile_select" type="checkbox"><label for="profile_select"> </label></td> + <td name="id"><a href="#profiles/${id}">${id}</a></td> + <td name="status">${status}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/selftest.html b/base/tps/shared/webapps/tps/ui/selftest.html new file mode 100644 index 000000000..8a680355a --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/selftest.html @@ -0,0 +1,42 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#selftests">Self Tests</a></li> + <li class="active"><strong><span name="title">Self Test ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Self Test ${id}</span> + +</div> + +<div name="user" class="pki-fields"> +<fieldset> + <label>Self Test ID</label> + <input name="id" readonly="readonly"><br> + <label>Enabled at Startup</label> + <input name="enabledAtStartup" readonly="readonly"><br> + <label>Critical at Startup</label> + <input name="criticalAtStartup" readonly="readonly"><br> + <label>Enabled on Demand</label> + <input name="enabledOnDemand" readonly="readonly"><br> + <label>Critical on Demand</label> + <input name="criticalOnDemand" readonly="readonly"><br> +</fieldset> +</div> diff --git a/base/tps/shared/webapps/tps/ui/selftests.html b/base/tps/shared/webapps/tps/ui/selftests.html new file mode 100644 index 000000000..2b428e2d2 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/selftests.html @@ -0,0 +1,79 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Self Tests</strong></li> +</ol> + +<span class="pki-title">Self Tests</span> +</div> + +<table name="selftests"> +<thead> + <tr> + <th class="pki-table-actions" colspan="6"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="selftest_selectall" type="checkbox"><label for="selftest_selectall"> </label></th> + <th>Self Test ID</th> + <th>Enabled at Statup</th> + <th>Critical at Startup</th> + <th>Enabled on Demand</th> + <th>Critical on Demand</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="selftest_select" type="checkbox"><label for="selftest_select"> </label></td> + <td name="id"><a href="#selftests/${id}">${id}</a></td> + <td name="enabledAtStartup">${enabledAtStartup}</td> + <td name="criticalAtStartup">${criticalAtStartup}</td> + <td name="enabledOnDemand">${enabledOnDemand}</td> + <td name="criticalOnDemand">${criticalOnDemand}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="6"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> diff --git a/base/tps/shared/webapps/tps/ui/token.html b/base/tps/shared/webapps/tps/ui/token.html new file mode 100644 index 000000000..78384acfe --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/token.html @@ -0,0 +1,96 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#tokens">Tokens</a></li> + <li class="active"><strong><span name="title">Token ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">Token ${id}</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +<a name="changeStatus" href="#">Change Status</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="token" class="pki-fields"> +<fieldset> + <label>Token ID</label> + <input name="tokenID" readonly="readonly"><br> + <label>User ID</label> + <input name="userID" readonly="readonly"><br> + <label>Type</label> + <input name="type" readonly="readonly"><br> + <label>Status</label> + <input name="statusLabel" readonly="readonly"><br> + <label>Applet ID</label> + <input name="appletID" readonly="readonly"><br> + <label>Key Info</label> + <input name="keyInfo" readonly="readonly"><br> + <label>Policy</label> + <input name="policy" readonly="readonly"><br> + <label>Created</label> + <input name="createTimestamp" readonly="readonly"><br> + <label>Modified</label> + <input name="modifyTimestamp" readonly="readonly"><br> +</fieldset> +</div> + +<div id="token-status-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Change Token Status</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Token ID</label> + <input name="tokenID" readonly="readonly"><br> + <label>Status</label> + <select name="status"> + <option value="UNINITIALIZED">Uninitialized</option> + <option value="ACTIVE">Active</option> + <option value="TEMP_LOST">Temporarily lost</option> + <option value="PERM_LOST">Permanently lost</option> + <option value="DAMAGED">Physically damaged</option> + <option value="TERMINATED">Terminated</option> + </select><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="save" class="btn btn-primary">Save</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/tokens.html b/base/tps/shared/webapps/tps/ui/tokens.html new file mode 100644 index 000000000..aca579a68 --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/tokens.html @@ -0,0 +1,135 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Tokens</strong></li> +</ol> + +<span class="pki-title">Tokens</span> +</div> + +<table name="tokens"> +<thead> + <tr> + <th class="pki-table-actions" colspan="10"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="token_selectall" type="checkbox"><label for="token_selectall"> </label></th> + <th>Token ID</th> + <th>User ID</th> + <th>Type</th> + <th>Status</th> + <th>Applet ID</th> + <th>Key Info</th> + <th>Policy</th> + <th>Created</th> + <th>Modified</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="token_select" type="checkbox"><label for="token_select"> </label></td> + <td name="id"><a href="#tokens/${id}">${id}</a></td> + <td name="userID">${userID}</td> + <td name="type">${type}</td> + <td name="status"><a href="#tokens/${id}/status">${statusLabel}</a></td> + <td name="appletID">${appletID}</td> + <td name="keyInfo">${keyInfo}</td> + <td name="policy">${policy}</td> + <td name="created">${createTimestamp}</td> + <td name="modified">${modifyTimestamp}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="10"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> + +<div id="token-status-dialog" class="modal"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> + <span class="pficon pficon-close"></span> + </button> + <h4 class="modal-title">Change Token Status</h4> + </div> + <div class="modal-body"> + <fieldset> + <label>Token ID</label> + <input name="tokenID" readonly="readonly"><br> + <label>User ID</label> + <input name="userID" readonly="readonly"><br> + <label>Type</label> + <input name="type" readonly="readonly"><br> + <label>Status</label> + <select name="status"> + <option value="UNINITIALIZED">Uninitialized</option> + <option value="ACTIVE">Active</option> + <option value="TEMP_LOST">Temporarily lost</option> + <option value="PERM_LOST">Permanently lost</option> + <option value="DAMAGED">Physically damaged</option> + <option value="TERMINATED">Terminated</option> + </select><br> + <label>Applet ID</label> + <input name="appletID" readonly="readonly"><br> + <label>Key Info</label> + <input name="keyInfo" readonly="readonly"><br> + <label>Policy</label> + <input name="policy" readonly="readonly"><br> + <label>Created</label> + <input name="createTimestamp" readonly="readonly"><br> + <label>Modified</label> + <input name="modifyTimestamp" readonly="readonly"><br> + </fieldset> + </div> + <div class="modal-footer"> + <button name="save" class="btn btn-primary">Save</button> + <button name="cancel" class="btn btn-default" data-dismiss="modal">Cancel</button> + </div> + </div> + </div> +</div> diff --git a/base/tps/shared/webapps/tps/ui/user.html b/base/tps/shared/webapps/tps/ui/user.html new file mode 100644 index 000000000..8463d0bef --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/user.html @@ -0,0 +1,57 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2014 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li><a href="#users">Users</a></li> + <li class="active"><strong><span name="title">User ${id}</span></strong></li> +</ol> + +<span name="title" class="pki-title">User ${id}</span> + +<span class="pki-actions"> + +<span class="pki-menu" style="display: none;"> +<a name="edit" href="#">Edit</a><br> +</span> + +<span class="pki-buttons" style="display: none;"> +<button name="cancel">Cancel</button> +<button name="save" class="primary">Save</button> +</span> + +</span> + +</div> + +<div name="user" class="pki-fields"> +<fieldset> + <label>User ID</label> + <input name="userID" readonly="readonly"><br> + <label>Full Name</label> + <input name="fullName" readonly="readonly"><br> + <label>Email</label> + <input name="email" readonly="readonly"><br> + <label>Type</label> + <input name="type" readonly="readonly"><br> + <label>State</label> + <input name="state" readonly="readonly"><br> + <label>TPS Profiles</label> + <input name="tpsProfiles" readonly="readonly"><br> +</fieldset> +</div> diff --git a/base/tps/shared/webapps/tps/ui/users.html b/base/tps/shared/webapps/tps/ui/users.html new file mode 100644 index 000000000..18d59c9de --- /dev/null +++ b/base/tps/shared/webapps/tps/ui/users.html @@ -0,0 +1,75 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2013 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<div class="pki-header"> +<ol class="breadcrumb"> + <li><a href="#">Home</a></li> + <li class="active"><strong>Users</strong></li> +</ol> + +<span class="pki-title">Users</span> +</div> + +<table name="users"> +<thead> + <tr> + <th class="pki-table-actions" colspan="3"> + <span name="search"> + <input name="search" type="text" placeholder="Search..."> + </span> + <span class="pki-table-buttons"> + <button name="add">Add</button> + <button name="remove">Remove</button> + </span> + </th> + </tr> + <tr> + <th class="pki-select-column"><input id="user_selectall" type="checkbox"><label for="user_selectall"> </label></th> + <th>User ID</th> + <th>Full Name</th> + </tr> +</thead> +<tbody> + <tr> + <td class="pki-select-column"><input id="user_select" type="checkbox"><label for="user_select"> </label></td> + <td name="id"><a href="#users/${id}">${id}</a></td> + <td name="fullName">${fullName}</td> + </tr> +</tbody> +<tfoot> + <tr> + <th class="pki-table-actions" colspan="3"> + <div class="pki-table-info"> + Total: <span name="totalEntries">0</span> entries + </div> + <div class="pki-page-controls"> + <ul class="pagination"> + <li><a href="#" name="first"><span class="i fa fa-angle-double-left"></span></a></li> + <li><a href="#" name="prev"><span class="i fa fa-angle-left"></span></a></li> + </ul> + <span class="pki-page-jump"> + <input name="page" type="text" value="1"> of <span name="totalPages">1</span> + </span> + <ul class="pagination"> + <li><a href="#" name="next"><span class="i fa fa-angle-right"></span></a></li> + <li><a href="#" name="last"><span class="i fa fa-angle-double-right"></span></a></li> + </ul> + </div> + </th> + </tr> +</tfoot> +</table> |