source: branches/3.18-stable/www/common/columns/save_preset.jsp @ 7957

Last change on this file since 7957 was 7957, checked in by Nicklas Nordborg, 22 months ago

References #2253: Configure sticky column

It should now be possible to select a sticky column in the "Configure columns" dialog. The setting is stored in the current ItemContext under the key columns.sticky.

So far, only the raw bioassays list page has been update to use the new setting.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1<%-- $Id: save_preset.jsp 7957 2021-06-03 07:39:33Z nicklas $
2  ------------------------------------------------------------------
3  Copyright (C) 2005 Nicklas Nordborg
4  Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg, Martin Svensson
5
6  This file is part of BASE - BioArray Software Environment.
7  Available at http://base.thep.lu.se/
8
9  BASE is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License
11  as published by the Free Software Foundation; either version 3
12  of the License, or (at your option) any later version.
13
14  BASE is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  GNU General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with BASE. If not, see <http://www.gnu.org/licenses/>.
21  ------------------------------------------------------------------
22
23  Ask for confirmation to delete a preset.
24
25
26  @author Nicklas
27  @version 2.0
28--%>
29<%@ page pageEncoding="UTF-8" session="false"
30  import="net.sf.basedb.core.SessionControl"
31  import="net.sf.basedb.core.Item"
32  import="net.sf.basedb.clients.web.Base"
33  import="net.sf.basedb.clients.web.util.HTML"
34  import="net.sf.basedb.util.Values"
35%>
36<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
37<%
38final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
39final String ID = sc.getId();
40final Item itemType = Item.valueOf(request.getParameter("item_type"));
41final String subContext = Values.getString(request.getParameter("subcontext"), "");
42final String columns = request.getParameter("columns");
43final String settingName = Values.getString(request.getParameter("settingName"), "columns");
44final String stickyColumn = Values.getStringOrNull(request.getParameter("stickyColumn"));
45%>
46<base:page type="popup" title="Save preset">
47<base:head scripts="~save_preset.js" />
48<base:body>
49  <h1>Save preset <base:help helpid="columns.configure.saveas" /></h1>
50
51  <form name="preset" action="submit_preset.jsp" method="post">
52  <input type="hidden" name="ID" value="<%=ID%>">
53  <input type="hidden" name="cmd" value="Save">
54  <input type="hidden" name="columns" value="<%=HTML.encodeTags(columns)%>">
55  <input type="hidden" name="item_type" value="<%=itemType.name()%>">
56  <input type="hidden" name="subcontext" value="<%=subContext%>">
57  <input type="hidden" name="settingName" value="<%=settingName%>">
58  <%
59  if (stickyColumn != null)
60  {
61    %>
62    <input type="hidden" name="stickyColumn" value="<%=HTML.encodeTags(stickyColumn)%>">
63    <%
64  }
65  %>
66  <div class="content">
67    <table class="fullform input100 smaller bottomborder">
68    <tr>
69      <th>Name</th>
70      <td><input class="text required auto-init" data-auto-init="focus" 
71        type="text" name="name" value="" maxlength="40"></td>
72    </tr>
73    <tr class="dynamic">
74      <th></th>
75      <td></td>
76    </tr>
77    </table>
78  </div>
79  </form>
80
81  <div class="legend">
82    <base:icon image="required.png" />= required information
83  </div>
84
85  <base:buttongroup subclass="dialogbuttons">
86    <base:button id="btnSave" title="Ok" />
87    <base:button id="close" title="Cancel" />
88  </base:buttongroup>
89
90</base:body>
91</base:page>
Note: See TracBrowser for help on using the repository browser.