removed files that are now part of qommon static files
Before Width: | Height: | Size: 633 B |
Before Width: | Height: | Size: 886 B |
|
@ -1,113 +0,0 @@
|
|||
table.jCalendar {
|
||||
background: #b4cdea;
|
||||
border-collapse: separate;
|
||||
border-spacing: 2px;
|
||||
}
|
||||
table.jCalendar th {
|
||||
background: #ffb267;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
padding: 3px 5px;
|
||||
}
|
||||
table.jCalendar td {
|
||||
background: #eee;
|
||||
color: #000;
|
||||
padding: 3px 5px;
|
||||
text-align: center;
|
||||
}
|
||||
table.jCalendar td.other-month {
|
||||
background: #ddd;
|
||||
color: #aaa;
|
||||
}
|
||||
table.jCalendar td.today {
|
||||
background: #666;
|
||||
color: #fff;
|
||||
}
|
||||
table.jCalendar td.selected {
|
||||
background: #f66;
|
||||
color: #fff;
|
||||
}
|
||||
table.jCalendar td.selected:hover {
|
||||
background: #f33;
|
||||
color: #fff;
|
||||
}
|
||||
table.jCalendar td:hover, table.jCalendar td.dp-hover {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
}
|
||||
table.jCalendar td.disabled, table.jCalendar td.disabled:hover {
|
||||
background: #bbb;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
/* For the popup */
|
||||
|
||||
div.dp-popup {
|
||||
position: relative;
|
||||
background: #5183c2;
|
||||
font-size: 10px;
|
||||
font-family: sans-serif;
|
||||
padding: 2px;
|
||||
width: 171px;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
div#dp-popup {
|
||||
position: absolute;
|
||||
z-index: 199;
|
||||
}
|
||||
div.dp-popup h2 {
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
margin: 2px 0;
|
||||
padding: 0;
|
||||
}
|
||||
a#dp-close {
|
||||
font-size: 11px;
|
||||
padding: 4px 0;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
a#dp-close:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
div.dp-popup a {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
padding: 3px 2px 0;
|
||||
}
|
||||
div.dp-popup div.dp-nav-prev {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 4px;
|
||||
width: 100px;
|
||||
}
|
||||
div.dp-popup div.dp-nav-prev a {
|
||||
float: left;
|
||||
}
|
||||
/* Opera needs the rules to be this specific otherwise it doesn't change the cursor back to pointer after you have disabled and re-enabled a link */
|
||||
div.dp-popup div.dp-nav-prev a, div.dp-popup div.dp-nav-next a {
|
||||
cursor: pointer;
|
||||
}
|
||||
div.dp-popup div.dp-nav-prev a.disabled, div.dp-popup div.dp-nav-next a.disabled {
|
||||
cursor: default;
|
||||
}
|
||||
div.dp-popup div.dp-nav-next {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 4px;
|
||||
width: 100px;
|
||||
}
|
||||
div.dp-popup div.dp-nav-next a {
|
||||
float: right;
|
||||
}
|
||||
div.dp-popup a.disabled {
|
||||
cursor: default;
|
||||
color: #aaa;
|
||||
}
|
||||
div.dp-popup td {
|
||||
cursor: pointer;
|
||||
}
|
||||
div.dp-popup td.disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
|
@ -1,344 +0,0 @@
|
|||
@import url(../wcs-common.css);
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
font-family: "Bitstream Vera Sans", "Verdana", sans-serif;
|
||||
background: white url(page-bg.png) repeat-y;
|
||||
color: black;
|
||||
}
|
||||
|
||||
div#main-content {
|
||||
margin-left: 160px;
|
||||
margin-top: -10px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
div#main-content h1 {
|
||||
color: #006699;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
div#main-content h2 {
|
||||
color: #006699;
|
||||
font-size: 115%;
|
||||
}
|
||||
|
||||
div#main-content h3 {
|
||||
color: #006699;
|
||||
font-size: 108%
|
||||
}
|
||||
|
||||
|
||||
|
||||
div#header {
|
||||
margin: 0;
|
||||
background: white url(head-bg.png) repeat-x;
|
||||
height: 58px;
|
||||
}
|
||||
|
||||
ul#menu {
|
||||
background: transparent url(head-logo.png) no-repeat;
|
||||
width: 177px;
|
||||
margin: 0;
|
||||
padding: 80px 0 0 5px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0066cc;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px dotted #ff9900;
|
||||
}
|
||||
|
||||
p.commands a {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
ul#menu a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul#menu li.active a {
|
||||
border-bottom: 1px solid #ff9900;
|
||||
}
|
||||
|
||||
ul#menu li {
|
||||
font-size: 90%;
|
||||
margin-bottom: 1em;
|
||||
max-width: 130px;
|
||||
}
|
||||
|
||||
div#footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul.user-info {
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
right: 25px;
|
||||
top: 13px;
|
||||
font-size: 70%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
ul.user-info li {
|
||||
display: inline;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
/** end of dc2 changes **/
|
||||
|
||||
|
||||
|
||||
ul.biglist {
|
||||
margin: 0;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
|
||||
ul.biglist li,
|
||||
li.biglistitem {
|
||||
list-style-type: none;
|
||||
margin: 8px 0;
|
||||
padding: 0 2px;
|
||||
border: 1px solid #888;
|
||||
background: #ffe;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
ul.biglist li p.details,
|
||||
li.biglistitem p.details {
|
||||
display: block;
|
||||
margin: 0;
|
||||
color: #555;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
|
||||
ul.biglist li p.commands,
|
||||
li.biglistitem p.commands {
|
||||
float: right;
|
||||
margin: 0;
|
||||
margin-top: -17px;
|
||||
}
|
||||
|
||||
ul.biglist li p.commands img,
|
||||
li.biglistitem p.commands img {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
a img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
td.time {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
ul.biglist li.disabled, ul.biglist li.disabled p.details,
|
||||
li.biglistitem.disabled, li.biglistitem.disabled p.details {
|
||||
color: #999;
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
|
||||
dl dt {
|
||||
margin : 0;
|
||||
padding : 0 0 0 0;
|
||||
}
|
||||
|
||||
dl dd {
|
||||
margin : 0.3em 0 1.5em 10px;
|
||||
}
|
||||
|
||||
|
||||
img.theme-icon {
|
||||
float: right;
|
||||
margin: -16px 4px 0px 3px;
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
div#new-field table {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field div.widget {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field div.buttons {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field div.buttons input {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field {
|
||||
border: 1px solid #888;
|
||||
background: #ffe;
|
||||
margin: 2em 0 4px 0;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
div#new-field div.widget {
|
||||
}
|
||||
|
||||
div#new-field h3 {
|
||||
margin: 0;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
div#new-field br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#new-field p.commands {
|
||||
float: right;
|
||||
margin-top: -17px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
div.WorkflowStatusWidget {
|
||||
border-left: 1px solid black;
|
||||
}
|
||||
|
||||
p#breadcrumb {
|
||||
background: #e6e6e6;
|
||||
-moz-border-radius: 6px;
|
||||
padding: 3px 8px;
|
||||
font-size: 80%;
|
||||
border: 1px solid #bfbfbf;
|
||||
}
|
||||
|
||||
/** steps **/
|
||||
#steps {
|
||||
height: 32px;
|
||||
margin-bottom: 1em;
|
||||
background: #f0f0f0;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
#steps ol {
|
||||
list-style: none;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
#steps li {
|
||||
display: inline;
|
||||
padding-right: 1em;
|
||||
display: block;
|
||||
float: left;
|
||||
width: 30%;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#steps ol ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#steps span.marker {
|
||||
font-size: 26px;
|
||||
padding: 2px 9px;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
text-align: center;
|
||||
background: #ddd;
|
||||
border: 1px solid #ddd;
|
||||
-moz-border-radius: 0.7ex;
|
||||
}
|
||||
|
||||
#steps li.current span.marker {
|
||||
background: #ffa500;
|
||||
border: 1px solid #ffc400;
|
||||
}
|
||||
|
||||
#steps span.label {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
#steps li.current span.label {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#steps ol ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/** logs **/
|
||||
form#other-log-select {
|
||||
margin-top: 2em;
|
||||
padding-top: 1em;
|
||||
border-top: 1px solid #999;
|
||||
}
|
||||
|
||||
form#other-log-select select {
|
||||
margin: 0 1em;
|
||||
}
|
||||
|
||||
tr.level-error td {
|
||||
border: 1px solid #800;
|
||||
background: red;
|
||||
}
|
||||
|
||||
tr.level-error td.message {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.error-message {
|
||||
color: #e00;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.stats {
|
||||
margin: 1ex 0;
|
||||
}
|
||||
|
||||
table.stats thead th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.stats td {
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
form.inplaceeditor-form {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
form.inplaceeditor-form input {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
textarea.comment {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
dl.job-status {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
dl.job-status dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
dl.job-status dd {
|
||||
margin-left: 2em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
span.activity {
|
||||
background: url(../indicator.gif) no-repeat top right;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
span.activity-done {
|
||||
background-image: none;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 830 B |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 87 B |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 117 B |
Before Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 181 B |
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 891 B |
Before Width: | Height: | Size: 816 B |
Before Width: | Height: | Size: 44 B |
Before Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 137 B |
Before Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 809 B |
|
@ -1,410 +0,0 @@
|
|||
@import url(wcs-common.css);
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
background : white url(fond.jpg) repeat;
|
||||
}
|
||||
|
||||
div#main-content {
|
||||
clear: both;
|
||||
max-width: 800px;
|
||||
margin: 0 4em;
|
||||
background: white url(deg-top.png) top left repeat-x;
|
||||
border: 1px solid #999;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
div#main-content h1 {
|
||||
margin: 0 140px 1em 0;
|
||||
border: 1px solid #666;
|
||||
padding: 0 0.5ex;
|
||||
background: white url(bg-footer.png) top right repeat-y;
|
||||
font-size: 150%;
|
||||
}
|
||||
|
||||
#header {
|
||||
max-width: 800px;
|
||||
margin: 0 4em;
|
||||
padding: 0 1em;
|
||||
background-image : url(dot999.png);
|
||||
background-repeat : repeat-x;
|
||||
background-position : 0 100%;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
#header ul {
|
||||
margin : 0;
|
||||
padding : 0;
|
||||
list-style : none;
|
||||
}
|
||||
|
||||
#header li {
|
||||
float : left;
|
||||
margin : 0 -1px 0 0;
|
||||
padding : 0 0 0 8px;
|
||||
background-repeat : no-repeat;
|
||||
background-position : 0 -110px;
|
||||
background-image: url(onglet_left.png);
|
||||
border-bottom: 1px solid #999;
|
||||
}
|
||||
#header a {
|
||||
float : left;
|
||||
display : block;
|
||||
background-image : url(onglet_right.png);
|
||||
background-repeat : no-repeat;
|
||||
background-position : 100% -110px;
|
||||
padding : 10px 10px 4px 3px;
|
||||
font-weight : bold;
|
||||
text-decoration : none;
|
||||
color : #000;
|
||||
}
|
||||
|
||||
/* Commented Backslash Hack
|
||||
Cache des règles à IE5-Mac \*/
|
||||
#header a {float:none;}
|
||||
/* Fin du hack IE5-Mac */
|
||||
|
||||
#header li.active, #header li.active:hover {
|
||||
background-position : 0 0;
|
||||
}
|
||||
#header li.active a, #header li.active:hover a {
|
||||
background-position : 100% 0;
|
||||
}
|
||||
#header li:hover {
|
||||
background-position : 0 -220px;
|
||||
}
|
||||
#header li:hover a {
|
||||
background-position : 100% -220px;
|
||||
}
|
||||
|
||||
#header li.active {
|
||||
border-bottom: 1px solid #eceade;
|
||||
}
|
||||
|
||||
/*
|
||||
#header li.inactive,
|
||||
#header li.inactive:hover {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
#header li.inactive a,
|
||||
#header li.inactive:hover a {
|
||||
background-position: 100% 0;
|
||||
color: gray;
|
||||
}
|
||||
*/
|
||||
|
||||
div#footer {
|
||||
max-width: 800px;
|
||||
margin: 0 4em;
|
||||
border: 1px solid #999;
|
||||
border-top: 0;
|
||||
background: #eceade;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
div#footer p {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
font-size: 80%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
div#login-top,
|
||||
div#logout-top,
|
||||
div#identity-top {
|
||||
margin: 6em auto 1em auto;
|
||||
border: 1px solid #999;
|
||||
background: white;
|
||||
padding: 0.5ex 1em;
|
||||
}
|
||||
|
||||
div#login-top,
|
||||
div#login-form {
|
||||
width: 20em;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
div#logout-top,
|
||||
div#logout-sps,
|
||||
div#identity-top,
|
||||
div#identity-content {
|
||||
width: 40em;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
div#login-top h1,
|
||||
div#logout-top h1,
|
||||
div#identity-top h1 {
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#login-form,
|
||||
div#logout-sps,
|
||||
div#identity-content {
|
||||
margin: 0 auto;
|
||||
background: white url(deg-top.png) top left repeat-x;
|
||||
border: 1px solid #999;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
div#login-form br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#login-form div.StringWidget {
|
||||
margin-bottom: 1ex;
|
||||
}
|
||||
|
||||
p#cookies {
|
||||
margin: 0 1em;
|
||||
text-align: center;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
form#login span.required {
|
||||
display: none
|
||||
}
|
||||
|
||||
div#logout-sps ul li {
|
||||
list-style: circle;
|
||||
}
|
||||
|
||||
div#logout-sps ul {
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
div#logout-sps ul li img {
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
ul.user-info {
|
||||
float : right;
|
||||
width : 102px;
|
||||
position : relative;
|
||||
margin : 0 0 1em 1em;
|
||||
padding : 5px 0 0 30px;
|
||||
background : transparent url(user_info_top.png) no-repeat top left;
|
||||
list-style : none;
|
||||
}
|
||||
li.ui-name {
|
||||
}
|
||||
li.ui-logout {
|
||||
display : block;
|
||||
background : transparent url(user_info_bottom.png) no-repeat bottom left;
|
||||
padding : 8px 0 10px 10px;
|
||||
margin : 0 0 0 -30px;
|
||||
}
|
||||
|
||||
li.ui-logout a {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
table th {
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #999;
|
||||
}
|
||||
|
||||
table td {
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
dl dt {
|
||||
margin : 0;
|
||||
padding : 0 0 0 0;
|
||||
}
|
||||
|
||||
dl dd {
|
||||
margin : 0.3em 0 1.5em 10px;
|
||||
}
|
||||
|
||||
div#identity-content hr {
|
||||
margin: 1em 2em;
|
||||
height: 1px;
|
||||
background: #999;
|
||||
border: 0;
|
||||
|
||||
}
|
||||
|
||||
div.FieldWidget div.StringWidget {
|
||||
float: left;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
br.FieldWidget,
|
||||
div.FieldWidget br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
div.explanation {
|
||||
margin: 0 140px 1em 0;
|
||||
background: white url(bg-footer.png) top right repeat-y;
|
||||
border: 1px solid #ccc;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
div.explanation ol,
|
||||
div.explanation p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div#error-page {
|
||||
border: 1px solid #a00;
|
||||
}
|
||||
|
||||
div#error-page h2 {
|
||||
margin: 0;
|
||||
border-bottom: 1px solid #a00;
|
||||
background: #f52;
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
div#error-page p {
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
img.theme-icon {
|
||||
float: right;
|
||||
margin: -16px 4px 0px 3px;
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
a.arrow {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul.biglist {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#fields-list li {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
ul.biglist li {
|
||||
list-style-type: none;
|
||||
margin: 4px 0;
|
||||
padding: 0 2px;
|
||||
border: 1px solid #888;
|
||||
background: #ffe;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
ul.biglist li p.details {
|
||||
display: block;
|
||||
margin: 0;
|
||||
color: #555;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
|
||||
ul.biglist li p.commands {
|
||||
float: right;
|
||||
margin-top: -17px;
|
||||
}
|
||||
|
||||
ul.biglist li p.commands img {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
a img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
td.time {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
ul.biglist li.disabled, ul.biglist li.disabled p.details {
|
||||
color: #999;
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
form#other-log-select {
|
||||
margin-top: 2em;
|
||||
padding-top: 1em;
|
||||
border-top: 1px solid #999;
|
||||
}
|
||||
|
||||
form#other-log-select select {
|
||||
margin: 0 1em;
|
||||
}
|
||||
|
||||
tr.level-error td {
|
||||
border: 1px solid #800;
|
||||
background: red;
|
||||
}
|
||||
|
||||
tr.level-error td.message {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div#new-field table {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field div.widget {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field div.buttons {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field div.buttons input {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div#new-field {
|
||||
border: 1px solid #888;
|
||||
background: #ffe;
|
||||
margin: 2em 0 4px 0;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
div#new-field div.widget {
|
||||
}
|
||||
|
||||
div#new-field h3 {
|
||||
margin: 0;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
div#new-field br {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#new-field p.commands {
|
||||
float: right;
|
||||
margin-top: -17px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
div.WorkflowStatusWidget {
|
||||
border-left: 1px solid black;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 1px solid #666;
|
||||
height: 1px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
|
|
@ -1,312 +0,0 @@
|
|||
a {
|
||||
color: #028;
|
||||
}
|
||||
|
||||
div.content {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
div.TextWidget textarea,
|
||||
div.RankedItemsWidget input,
|
||||
div.StringWidget input,
|
||||
div.IntWidget input,
|
||||
div.DateWidget input,
|
||||
div.WcsExtraStringWidget input,
|
||||
div.RegexStringWidget input,
|
||||
div.EmailWidget input,
|
||||
div.PasswordWidget input {
|
||||
border: 1px inset #ccc;
|
||||
margin: 1px;
|
||||
padding: 2px 3px;
|
||||
}
|
||||
|
||||
div.RankedItemsWidget input {
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
div.SingleSelectWidget select {
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
div.widget input.prefill-button {
|
||||
border: 1px outset #ccc;
|
||||
margin: 0 0 0 1em;
|
||||
padding: 0px 0px;
|
||||
}
|
||||
|
||||
div.widget input.prefill-button:focus {
|
||||
border: 1px outset #ccc;
|
||||
margin: 0 0 0 1em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
div.widget textarea.readonly,
|
||||
div.widget input.readonly {
|
||||
border: 1px solid #ccc;
|
||||
background: #eee;
|
||||
margin: 0 0 0 1em;
|
||||
}
|
||||
|
||||
div.TextWidget textarea:focus,
|
||||
div.DateWidget input:focus,
|
||||
div.StringWidget input:focus,
|
||||
div.IntWidget input:focus,
|
||||
div.WcsExtraStringWidget input:focus,
|
||||
div.RegexStringWidget input:focus,
|
||||
div.EmailWidget input:focus,
|
||||
div.PasswordWidget input:focus {
|
||||
border: 2px solid #ccf;
|
||||
/*margin: 0px; */
|
||||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
div.AccountSettingWidget label {
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
||||
div.SubmitWidget input, input[type=submit] {
|
||||
margin-top: 1em;
|
||||
border: 1px outset #ccc;
|
||||
}
|
||||
|
||||
div.form .title, form.quixote .title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.errornotice {
|
||||
background: #fd6;
|
||||
border: 1px solid #ffae15;
|
||||
margin: 0em 1em 1em 1em;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
div.infonotice {
|
||||
background: #7b95a6;
|
||||
border: 1px solid #153eaf;
|
||||
margin: 0em 1em 1em 1em;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
div.error {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
background: transparent url(warning.png) top left no-repeat;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
div.buttons div.SubmitWidget,
|
||||
div.buttons div.SubmitWidget div.content {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
div.buttons br { display: none; }
|
||||
|
||||
div.widget {
|
||||
margin-bottom: 0.5em;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
input[type="submit"][name="submit"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div.form pre {
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
|
||||
div#error h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div#error {
|
||||
width: 40em;
|
||||
max-width: 500px;
|
||||
margin: 15% auto;
|
||||
background: white;
|
||||
border: 1px solid #999;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
div.hint {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
span.required {
|
||||
background: transparent url(required.png) 0px 0.5ex no-repeat;
|
||||
padding: 0 0 0 24px;
|
||||
margin-left: 1ex;
|
||||
overflow: hidden;
|
||||
color: white;
|
||||
}
|
||||
|
||||
div.buttons {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
div.RadiobuttonsWidget div.content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
div.error-page {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
pre#exception {
|
||||
overflow: scroll;
|
||||
padding: 1em;
|
||||
border: 1px solid #bbb;
|
||||
background: #f0f0f0;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
div.StringWidget ul {
|
||||
margin: 0;
|
||||
padding-left: 2em;
|
||||
list-style: circle;
|
||||
}
|
||||
|
||||
div.inline-first div.title,
|
||||
div.inline div.title {
|
||||
display: inline;
|
||||
float: left;
|
||||
max-width: 20em;
|
||||
text-align: left;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
div.inline-first div.title span.required,
|
||||
div.inline div.title span.required {
|
||||
margin-left: 1ex;
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
div.inline-first div.content,
|
||||
div.inline div.content {
|
||||
margin-left: 1ex;
|
||||
}
|
||||
|
||||
div.inline-first div.hint,
|
||||
div.inline div.hint {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.inline-first {
|
||||
float: left;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div.inline {
|
||||
float: left;
|
||||
clear: none;
|
||||
}
|
||||
|
||||
div.inline-first div.content,
|
||||
div.inline div.content {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
div.inline-first div.content,
|
||||
div.inline div.content {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.clear-both {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div.CheckboxesWidget div.content ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.CheckboxesWidget div.content ul.inline li {
|
||||
display: inline;
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
div.dataview {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
div.dataview span.label {
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
}
|
||||
|
||||
div.dataview span.value {
|
||||
display: block;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
form div.page,
|
||||
div.dataview div.page {
|
||||
border: 1px solid #aaa;
|
||||
padding: 1ex;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
form div.page p,
|
||||
div.dataview div.page p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
form div.page h3,
|
||||
div.dataview div.page h3 {
|
||||
margin: 0;
|
||||
margin-bottom: 1ex;
|
||||
}
|
||||
|
||||
#modalOverlay {
|
||||
height:100%;
|
||||
width:100%;
|
||||
position:fixed;
|
||||
left:0;
|
||||
top:0;
|
||||
z-index:3000;
|
||||
background-color: black;
|
||||
cursor:wait;
|
||||
}
|
||||
|
||||
div#popup {
|
||||
position:fixed;
|
||||
/*width:600px;
|
||||
left:50%;
|
||||
margin-left:-300px; */
|
||||
z-index:3100;
|
||||
border: 1px solid black;
|
||||
border-color: #333 black black #333;
|
||||
}
|
||||
|
||||
|
||||
div#popup div.popup-content {
|
||||
padding: 10px;
|
||||
min-width: 200px;
|
||||
background: white;
|
||||
border: 2px solid #6d81b9;
|
||||
}
|
||||
|
||||
div#popup form div.widget {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div#popup form div.buttons {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#popup h2 {
|
||||
margin: -10px -10px 10px -10px;
|
||||
padding: 2px 5px;
|
||||
font-size: 110%;
|
||||
background: #6d81b9;
|
||||
color: white;
|
||||
}
|
||||
|
||||
a#display-exception {
|
||||
display: none;
|
||||
}
|
||||
|
319
root/css/wcs.css
|
@ -1,319 +1,2 @@
|
|||
@import url(wcs-common.css);
|
||||
@import url(jscalendar/aqua/theme.css);
|
||||
/* derived from soFresh, a DotClear theme by Maurice Svay (GPL)
|
||||
* http://www.svay.com/files/soFresh/theme-sofresh-1.2.zip */
|
||||
|
||||
html, body {
|
||||
font-family: sans-serif;
|
||||
text-align: center;
|
||||
background: #eee;
|
||||
color: black;
|
||||
}
|
||||
|
||||
div#page {
|
||||
width: 800px;
|
||||
margin: 2em auto;
|
||||
text-align: justify;
|
||||
background: white url(img/page.png) repeat-y;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#top {
|
||||
color: #09F;
|
||||
background: #FFF url(img/top.jpg) no-repeat;
|
||||
height: 100px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#top h1 {
|
||||
margin: 0;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
line-height: 100px;
|
||||
height: 100px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#footer {
|
||||
background: #FFF url(img/footer.jpg) no-repeat;
|
||||
color: #999;
|
||||
text-align: center;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
div#main-content {
|
||||
margin: 0 2em;
|
||||
}
|
||||
|
||||
div#main-content h1 {
|
||||
color: #09F;
|
||||
}
|
||||
|
||||
#steps {
|
||||
height: 32px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
#steps ol {
|
||||
list-style: none;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
#steps li {
|
||||
display: inline;
|
||||
padding-right: 1em;
|
||||
display: block;
|
||||
float: left;
|
||||
width: 30%;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#steps ol ul {
|
||||
border: 1px solid #ffa500;
|
||||
margin-left: 2em;
|
||||
background: #ffdb94;
|
||||
margin-bottom: 1em;
|
||||
padding: 0;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#steps li li {
|
||||
display: block;
|
||||
width: auto;
|
||||
float: none;
|
||||
text-align: left;
|
||||
margin-left: 1em;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
#steps li li.current {
|
||||
color: black;
|
||||
}
|
||||
|
||||
|
||||
#steps span.marker {
|
||||
font-size: 26px;
|
||||
padding: 2px 9px;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
text-align: center;
|
||||
background: #ddd;
|
||||
border: 1px solid #ddd;
|
||||
-moz-border-radius: 0.7ex;
|
||||
}
|
||||
|
||||
#steps li.current span.marker {
|
||||
background: #ffa500;
|
||||
border: 1px solid #ffc400;
|
||||
}
|
||||
|
||||
#steps span.label {
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
#steps li.current span.label {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#steps {
|
||||
background: #f0f0f0;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
#steps ol ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#steps ol li.current ul {
|
||||
display: block;
|
||||
}
|
||||
|
||||
form {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
p#receiver {
|
||||
margin: 0;
|
||||
margin-left: 2em;
|
||||
margin-top: -0.7em;
|
||||
margin-bottom: 1em;
|
||||
padding: 2px 5px;
|
||||
border: 1px solid #ccc;
|
||||
float: left;
|
||||
background: #ffe;
|
||||
}
|
||||
|
||||
p#login,
|
||||
p#logout {
|
||||
margin-top: 2em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
p#login a, p#logout a {
|
||||
text-decoration: underline;
|
||||
/*
|
||||
text-decoration: none;
|
||||
-moz-border-radius: 2em !important;
|
||||
padding: 1px 6px !important;
|
||||
border: 1px solid #ccc !important;
|
||||
border-bottom: 2px solid #999 !important;*/
|
||||
}
|
||||
|
||||
p#login a:hover {
|
||||
background-color: #ddeeff;
|
||||
}
|
||||
|
||||
h2#submitted, h2#done {
|
||||
margin-top: 2em;
|
||||
color: #09F;
|
||||
font-size: 130%;
|
||||
}
|
||||
|
||||
h2#done {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
ul li {
|
||||
list-style-image: url(img/li.png);
|
||||
}
|
||||
|
||||
h2, h3 {
|
||||
color: #09F;
|
||||
margin-left: 0.5em;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
table#listing {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
table#listing th {
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #999;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
table#listing td {
|
||||
padding-right: 1ex;
|
||||
}
|
||||
|
||||
table#listing th a {
|
||||
text-decoration: none;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
table.sortable span.sortarrow {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
table#listing tr.status-new {
|
||||
background: #aea;
|
||||
}
|
||||
|
||||
table#listing tr.status-finished,
|
||||
table#listing tr.status-rejected {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
table#listing tr.status-rejected td {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
div.question p.label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
img.bar {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
div.question table {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
div.question table td {
|
||||
}
|
||||
|
||||
div.question table td.percent {
|
||||
text-align: right;
|
||||
padding: 0 1em;
|
||||
width: 6em;
|
||||
}
|
||||
|
||||
div.question table td.label {
|
||||
width: 6em;
|
||||
}
|
||||
|
||||
span.user {
|
||||
margin-left: 1em;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
a.listing {
|
||||
font-size: 80%;
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #113;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #06C;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
#prelude {
|
||||
color: #aaa;
|
||||
background: transparent;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
top: -85px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p#breadcrumb {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
div.error-page {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
div.hint {
|
||||
display: inline;
|
||||
padding-left: 1ex;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
a.standalone {
|
||||
background: white url(img/h2.png) top left no-repeat;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
div#welcome-message a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
input.cancel {
|
||||
margin-left: 5em;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 1px solid #666;
|
||||
height: 1px;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
div.buttons {
|
||||
clear: both;
|
||||
}
|
||||
@import url(../qo/css/sofresh.css);
|
||||
|
||||
|
|
Before Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 739 B |
Before Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 682 B |
Before Width: | Height: | Size: 745 B |
Before Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 759 B |
Before Width: | Height: | Size: 747 B |
|
@ -1,21 +0,0 @@
|
|||
function updateStatus()
|
||||
{
|
||||
$('div.done').hide();
|
||||
$('span.afterjob').each(
|
||||
function () {
|
||||
$(this).addClass('activity');
|
||||
$(this).load('/afterjobs/' + $(this).attr('id'), null,
|
||||
function () {
|
||||
if ($(this).text() != 'completed') {
|
||||
window.setTimeout(updateStatus, 2500);
|
||||
} else {
|
||||
$(this).addClass('activity-done');
|
||||
$('div.done').show();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
$(document).ready(updateStatus);
|
|
@ -1,34 +0,0 @@
|
|||
$(document).ready(
|
||||
function () {
|
||||
$('ul.biglist.sortable').Sortable(
|
||||
{
|
||||
accept: 'biglistitem',
|
||||
helperclass: 'sortHelper',
|
||||
activeclass : 'sortableactive',
|
||||
hoverclass : 'sortablehover',
|
||||
tolerance: 'pointer',
|
||||
onChange : function(ser)
|
||||
{
|
||||
result = '';
|
||||
items = $('ul.biglist li');
|
||||
for (i=0; i < items.length; i++) {
|
||||
item = items[i];
|
||||
// 6 is length of 'itemId'
|
||||
result += item.id.substr(7, 9) + ';';
|
||||
}
|
||||
$.post('update_order', {'order': result},
|
||||
function(data) { $('ul.biglist').Highlight(500, '#ff8'); });
|
||||
},
|
||||
onStart : function()
|
||||
{
|
||||
$.iAutoscroller.start(this, document.getElementsByTagName('body'));
|
||||
},
|
||||
onStop : function()
|
||||
{
|
||||
$.iAutoscroller.stop();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
Before Width: | Height: | Size: 643 B |
|
@ -1,11 +0,0 @@
|
|||
$(document).ready(
|
||||
function () {
|
||||
$('a#display-exception').show();
|
||||
$('#exception').hide();
|
||||
$('a#display-exception').click(
|
||||
function() {
|
||||
$('a#display-exception').hide();
|
||||
$('#exception').slideDown();
|
||||
} );
|
||||
}
|
||||
);
|
|
@ -1,33 +0,0 @@
|
|||
function updateListing(e) {
|
||||
var elems = $('#listing').find('select');
|
||||
var criterions = new Array();
|
||||
for (i = 0; i < elems.length; i++) {
|
||||
elem = elems[i];
|
||||
if (typeof $(elem).attr('value') != 'undefined') {
|
||||
criterions.push(new Array($(elem).parent().prevAll().length,
|
||||
$(elem).find('option:selected').text()));
|
||||
}
|
||||
}
|
||||
$('#listing tbody tr').each(
|
||||
function () {
|
||||
var hidden = false;
|
||||
for (i = 0; i < criterions.length; i++) {
|
||||
var criteria = criterions[i];
|
||||
if ($($(this).children()[criteria[0]]).text() != criteria[1]) {
|
||||
$(this).hide();
|
||||
hidden = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (hidden == false) {
|
||||
$(this).show();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function displayForm() {
|
||||
$('#listing thead').show();
|
||||
}
|
||||
|
||||
displayForm();
|
|
@ -1,39 +0,0 @@
|
|||
function displayPopup(event)
|
||||
{
|
||||
$.ajax({
|
||||
url: $(this).attr('href'),
|
||||
beforeSend: function(xhr) {xhr.setRequestHeader('X-Popup', 'true'); },
|
||||
success: function(html) {
|
||||
$.modal($(html), {containerId: 'popup', close: false,
|
||||
onOpen: function () {
|
||||
this.dialog.overlay.show();
|
||||
}
|
||||
});
|
||||
$('div.popup-content input[@name=cancel]').click(
|
||||
function () {
|
||||
$.modal.close();
|
||||
return false;
|
||||
}
|
||||
);
|
||||
var popup = $('div#popup');
|
||||
var overlay_height = $('#modalOverlay').height();
|
||||
// display the popup out of the screen, necessary to get its layout
|
||||
popup.css('top', '-1000px').css('left', '-1000px').show();
|
||||
var popup_height = $('div.popup-content').height();
|
||||
var popup_width = $('div.popup-content').width();
|
||||
popup.hide();
|
||||
if (popup_height < overlay_height) {
|
||||
popup.css('margin-top', - popup_height/2);
|
||||
}
|
||||
popup.css('margin-left', - popup_width/2);
|
||||
popup.css('top', '50%').css('left', '50%')
|
||||
popup.fadeIn();
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('a[rel=popup]').click(displayPopup);
|
||||
});
|
|
@ -1,48 +0,0 @@
|
|||
$(document).ready(
|
||||
function () {
|
||||
$('input[@name$=add_element]').click(
|
||||
function() {
|
||||
/* get prefix from clicked element */
|
||||
var name_attr = $(this).attr('name');
|
||||
var prefix = name_attr.substr(0, name_attr.length-12); // 12 == len($add_element)
|
||||
|
||||
/* get last row node */
|
||||
var row = $(this).parents('div').parents('div').prev()[0];
|
||||
if (row.tagName == 'BR') {
|
||||
row = $(row).prev()[0];
|
||||
}
|
||||
|
||||
if ($(row).find('input[@name$=add_element]').length > 0) {
|
||||
/* this has several levels of widget lists, don't use
|
||||
* javascript in that case */
|
||||
return true;
|
||||
}
|
||||
|
||||
/* clone the row */
|
||||
var new_row = $(row).clone();
|
||||
|
||||
/* fix up form element name */
|
||||
$(new_row).find('[@name^=' + prefix + ']').each(
|
||||
function() {
|
||||
var cur_name = $(this).attr('name');
|
||||
var pos = cur_name.indexOf('element', prefix.length) + 7; // 7 == len(element)
|
||||
var index = cur_name.substring(pos, cur_name.length);
|
||||
var new_name = cur_name.substring(0, cur_name.length-index.length) +
|
||||
(parseInt(index)+1);
|
||||
$(this).attr('name', new_name);
|
||||
}
|
||||
);
|
||||
|
||||
/* add new row after the last row */
|
||||
$(row).after($(new_row));
|
||||
|
||||
/* increase hidden $added_elements value */
|
||||
var hidden = $($(this).parents('div').parents('div')[0]).prevAll(
|
||||
'input[type=hidden]')[0];
|
||||
$(hidden).attr('value', parseInt($(hidden).attr('value'))+1);
|
||||
|
||||
return false;
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|