Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 91e445e

Browse files
authored
Merge pull request #299 from appirio-tech/revert-298-dev
Revert "move project permission and notification input to use magicsuggest"
2 parents 9998f61 + 4ced2cf commit 91e445e

File tree

9 files changed

+145
-146
lines changed

9 files changed

+145
-146
lines changed

src/web/WEB-INF/contest-details2.jsp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%--
22
- Author: BeBetter, isv, GreatKevin, Ghost_141, Veve, TCSCODER
3-
- Version: 1.13
3+
- Version: 1.11
44
- Copyright (C) 2010 - 2017 TopCoder Inc., All Rights Reserved.
55
-
66
- Description: Contest Detail page
@@ -32,8 +32,6 @@
3232
- - Add CANCEL and CLOSE button on active private challenge
3333
- Version 1.12 (TOPCODER - SUPPORT TYPEAHEAD FOR TASK ASSIGNEES IN DIRECT APP):
3434
- - Split jquery import to other file
35-
- Version 1.13 (TOPCODER - IMPROVE USER MANAGEMENT BEHAVIOR FOR PROJECT PERMISSIONS & NOTIFICATIONS)
36-
- - Move redundant code
3735
--%>
3836
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
3937
<%@ include file="/WEB-INF/includes/taglibs.jsp" %>
@@ -42,6 +40,9 @@
4240

4341
<html xmlns="http://www.w3.org/1999/xhtml">
4442
<head>
43+
<script type="text/javascript" src="/scripts/jquery-1.11.1.min.js"></script>
44+
<script type="text/javascript" src="/scripts/bootstrap.min.js"></script>
45+
<script type="text/javascript" src="/scripts/magicsuggest.js"></script>
4546
<jsp:include page="includes/jq_1_11_1.jsp"/>
4647
<jsp:include page="includes/htmlhead.jsp"/>
4748
<!--[if IE 7]>

src/web/WEB-INF/editCockpitProject.jsp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%--
2-
- Author: GreatKevin, freegod, Veve, TCSCODER
3-
- Version: 1.8
4-
- Copyright (C) 2011 - 2017 TopCoder Inc., All Rights Reserved.
2+
- Author: GreatKevin, freegod, Veve
3+
- Version: 1.7
4+
- Copyright (C) 2011 - 2014 TopCoder Inc., All Rights Reserved.
55
-
66
- Description: This JSP page is the edit project page.
77
-
@@ -37,8 +37,6 @@
3737
-
3838
- Version 1.7 (TopCoder Direct - Add Appirio Manager)
3939
- - Add Appirio Manager
40-
- Version 1.8 (TOPCODER - IMPROVE USER MANAGEMENT BEHAVIOR FOR PROJECT PERMISSIONS & NOTIFICATIONS)
41-
- - Add magicsuggest control for permission and notiification
4240
--%>
4341
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
4442
<%@ include file="/WEB-INF/includes/taglibs.jsp" %>
@@ -47,11 +45,9 @@
4745

4846
<html xmlns="http://www.w3.org/1999/xhtml">
4947
<head>
50-
<jsp:include page="includes/jq_1_11_1.jsp"/>
5148
<jsp:include page="includes/htmlhead.jsp"/>
5249
<script type="text/javascript" src="/scripts/jquery.tools.min.js?v=222286"></script>
5350
<link rel="stylesheet" href="/css/direct/editProject.css?v=213353" media="all" type="text/css"/>
54-
<link rel="stylesheet" href="/css/direct/magicsuggest.css" media="all" type="text/css"/>
5551
<script type="text/javascript">
5652
var groupIds = [];
5753
var group;
@@ -527,9 +523,6 @@
527523
<div class="permissionsNotifications">
528524
<a name="permissionsNotifications"/>
529525
<h3>Project Permissions &amp; Notifications</h3>
530-
<div class="userInputRow">
531-
<div id="permissionsNotificationsInput"></div>
532-
</div>
533526
<table border="0" cellpadding="0" cellspacing="0" class="tableHeader">
534527
<colgroup>
535528
<col width="15%" />
@@ -551,7 +544,7 @@
551544
</th>
552545
<th>Project Forum Notification</th>
553546
<th>Challenge Notifications</th>
554-
<th></th>
547+
<th><a name="addUserModal" class="buttonRed1 newButtonGreen triggerModal" href="javascript:;" id="addUser"><span>ADD USER</span></a></th>
555548
</tr>
556549
</thead>
557550
<tbody>

src/web/WEB-INF/includes/jq_1_11_1.jsp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
<%--
2-
- Version: 1.1
2+
- Version: 1.0
33
- Copyright (C) 2017 TopCoder Inc., All Rights Reserved.
44
-
55
- Description: Html fragment to import jquery 1.11.1 and setup other variable
6-
-
7-
- Version 1.1 (TOPCODER - IMPROVE USER MANAGEMENT BEHAVIOR FOR PROJECT PERMISSIONS & NOTIFICATIONS)
8-
- - Move some redundant code related to jquery 1.11 and magicsuggest to here
96
--%>
10-
<script type="text/javascript" src="/scripts/jquery-1.11.1.min.js"></script>
11-
<script type="text/javascript" src="/scripts/bootstrap.min.js"></script>
12-
<script type="text/javascript" src="/scripts/magicsuggest.js"></script>
137
<script type="text/javascript">
148
var jQuery_1_11_1 = $.noConflict(true);
159
var member_api_url = "@memberSearchApiUrl@";

src/web/WEB-INF/includes/project/edit/editProjectPageModals.jsp

Lines changed: 77 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<%--
2-
- Author: GreatKevin, Ghost_141, GreatKevin, TCSCODER
3-
- Version: 1.5
4-
- Copyright (C) 2011 - 2017 TopCoder Inc., All Rights Reserved.
2+
- Author: GreatKevin, Ghost_141, GreatKevin
3+
- Version: 1.4
4+
- Copyright (C) 2011 - 2013 TopCoder Inc., All Rights Reserved.
55
-
66
- Description: This page fragment contains all the modal windows of the edit project page.
77
-
8-
- Version 1.5 (TOPCODER - IMPROVE USER MANAGEMENT BEHAVIOR FOR PROJECT PERMISSIONS & NOTIFICATIONS)
9-
- - Remove permission and notification modal
10-
-
118
- Version 1.4 (Release Assembly - TopCoder Direct Cockpit Release Assembly Ten)
129
- - Add management modal for add / remove TopCoder Account Managers in edit cockpit project jsp page.
1310
-
@@ -396,6 +393,80 @@
396393
</div>
397394
<!-- end #addCustomeMeta -->
398395

396+
<!-- add user permission -->
397+
<div id="addUserModal" class="outLay userManagementModal">
398+
<div class="inner">
399+
<div class="modalHeader">
400+
<div class="modalHeaderRight">
401+
<div class="modalHeaderCenter">
402+
<span>Add Users To Permission List</span>
403+
<a href="javascript:;" class="closeModal" title="Close">Close</a>
404+
</div>
405+
</div>
406+
</div>
407+
<!-- end .modalHeader -->
408+
409+
<!-- content -->
410+
<div class="modalBody">
411+
<div class="addUserForm">
412+
<div class="addUserLeft">
413+
<!-- title -->
414+
<div class="addUserTitle">
415+
<p>Users</p>
416+
<a href="javascript:;" class="selectAll">Select All</a>
417+
</div>
418+
<!-- End .addUserTitle -->
419+
<!-- search -->
420+
<div class="searchBox">
421+
<input type="text" class="text" value="" />
422+
<a href="javascript:;" class="downloadProfile"><span class="profileLeft">Search</span></a>
423+
</div>
424+
<!-- End .searchBox -->
425+
<!-- list -->
426+
<div class="addUserList">
427+
<ul>
428+
429+
</ul>
430+
</div>
431+
<!-- End .addUserList -->
432+
</div>
433+
<div class="addUserButton">
434+
<a href="javascript:;" class="addItem">Add</a>
435+
</div>
436+
<div class="addUserRight">
437+
<!-- title -->
438+
<div class="addUserTitle">
439+
<p>Existing Users</p>
440+
</div>
441+
<!-- End .addUserTitle -->
442+
<!-- list -->
443+
<div class="addUserList">
444+
<ul>
445+
446+
</ul>
447+
</div>
448+
<!-- End .addUserList -->
449+
</div>
450+
<div class="clear"></div>
451+
</div>
452+
<div class="buttonArea">
453+
<a href="javascript:;" title="SAVE" class="button6 saveButton"><span class="left"><span class="right">SAVE</span></span></a>
454+
<a href="javascript:;" title="CANCEL" class="closebutton button6 cancelButton"><span class="left"><span class="right">CANCEL</span></span></a>
455+
<div class="clearFix"></div>
456+
</div>
457+
</div>
458+
<!-- End .content -->
459+
460+
<div class="modalFooter">
461+
<div class="modalFooterRight">
462+
<div class="modalFooterCenter"></div>
463+
</div>
464+
</div>
465+
<!-- end .modalFooter -->
466+
</div>
467+
</div>
468+
<!-- end user permission -->
469+
399470
<!-- add group permission -->
400471
<div id="addGroupModal" class="outLay">
401472
<div class="inner">

src/web/WEB-INF/launch-contest.jsp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%--
22
- Author: bugbuka, TCSCODER
3-
- Version: 1.5
3+
- Version: 1.4
44
- Copyright (C) 2011 - 2017 TopCoder Inc., All Rights Reserved.
55
-
66
- Description: This page provides function of creating project in dashboard.
@@ -15,9 +15,6 @@
1515
-
1616
- Version 1.4 (TOPCODER - SUPPORT TYPEAHEAD FOR TASK ASSIGNEES IN DIRECT APP):
1717
- - Split jquery import to other file
18-
-
19-
- Version 1.5 (TOPCODER - IMPROVE USER MANAGEMENT BEHAVIOR FOR PROJECT PERMISSIONS & NOTIFICATIONS)
20-
- - Move redundant code
2118
--%>
2219
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2320
<%@ include file="/WEB-INF/includes/taglibs.jsp" %>
@@ -26,6 +23,9 @@
2623

2724
<html xmlns="http://www.w3.org/1999/xhtml">
2825
<head>
26+
<script type="text/javascript" src="/scripts/jquery-1.11.1.min.js"></script>
27+
<script type="text/javascript" src="/scripts/bootstrap.min.js"></script>
28+
<script type="text/javascript" src="/scripts/magicsuggest.js"></script>
2929
<jsp:include page="includes/jq_1_11_1.jsp"/>
3030
<jsp:include page="includes/htmlhead.jsp"/>
3131
<link rel="stylesheet" href="/css/direct/projectMilestone.css" media="all" type="text/css" />

src/web/css/direct/editProject.css

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2011 - 2017 TopCoder Inc., All Rights Reserved.
2+
* Copyright (C) 2011 - 2014 TopCoder Inc., All Rights Reserved.
33
*
44
* This css used to render edit project page.
55
*
@@ -21,11 +21,8 @@
2121
* Version 1.6 (TC Direct Rebranding Assembly Project and Contest related pages)
2222
* - Rebranding the edit direct project page
2323
*
24-
* Version 1.7 (TOPCODER - IMPROVE USER MANAGEMENT BEHAVIOR FOR PROJECT PERMISSIONS & NOTIFICATIONS)
25-
* - Add style for magicsuggest control
26-
*
27-
* Author: GreatKevin, Ghost_141, TCSASSEMBLER, TCSCODER
28-
* Version 1.7
24+
* Author: GreatKevin, Ghost_141, TCSASSEMBLER
25+
* Version 1.6
2926
*/
3027
.editPage #header .logo {
3128
font-size: 18px;
@@ -2387,21 +2384,3 @@ a.saveSetting:hover,
23872384
border-bottom: 3px solid #81bc02;
23882385
}
23892386

2390-
.permissionsNotifications .userInputRow{
2391-
border: 1px solid #CCC;
2392-
border-radius: 4px;
2393-
margin-bottom: 10px;
2394-
width: 372px;
2395-
}
2396-
2397-
.permissionsNotifications .ms-stacked{
2398-
display: none;
2399-
}
2400-
2401-
.permissionsNotifications td sup{
2402-
background-color: #ff0001;
2403-
color: #fff;
2404-
border-radius: 4px;
2405-
padding: 0px 2px 1px 2px;
2406-
margin-left: 5px;
2407-
}

0 commit comments

Comments
 (0)