Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
7cc95617
Commit
7cc95617
authored
Feb 01, 2017
by
Grady Moran
Browse files
added incomplete modals for the other buttons
parent
8dc830c5
Pipeline
#803
failed with stage
in 1 minute and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/templates/admin/useradmin.html
View file @
7cc95617
...
...
@@ -72,9 +72,9 @@ SRCT Go • Administration Panel
<!-- a div containing our form submission buttons -->
<div
class=
"form-group"
>
<
input
type=
"submit"
name
=
"
_
approve
"
value=
"Approve"
class=
"btn btn-primary btn-sm"
>
<
input
type=
"submit"
name=
"_deny"
value=
"Deny"
class=
"btn btn-danger btn-sm"
>
<
input
type=
"submit"
name=
"_block"
value=
"Block"
class=
"btn btn-default btn-sm btn-blockUsr
"
style=
"background-color: black; color: white;"
>
<
a
class=
"btn btn-primary btn-sm"
data-target
=
"
#
approve
Modal-{{url.short}}"
data-toggle=
"modal"
>
Approve
</a
>
<
a
class=
"btn btn-danger btn-sm"
data-target=
"#denyModal-{{url.short}}"
data-toggle=
"modal"
>
Deny
</a
>
<
a
class=
"btn btn-default btn-sm btn-blockUsr"
data-target=
"#blockModal-{{url.short}}"
data-toggle=
"modal
"
style=
"background-color: black; color: white;"
>
Block
</a>
</div>
</form>
</div>
...
...
@@ -128,7 +128,8 @@ SRCT Go • Administration Panel
<!-- define an unblock button -->
<div
class=
"form-group"
>
<input
type=
"submit"
name=
"_unblock"
value=
"Un-Block"
class=
"btn btn-default btn-sm btn-Unblock"
>
<!-- input type="submit" name="_unblock" value="Un-Block" class="btn btn-default btn-sm btn-Unblock"-->
<a
class=
"btn btn-default btn-sm btn-Unblock"
data-target=
"#unblockModal-{{url.short}}"
data-toggle=
"modal"
>
Unblock
</a>
</div>
</form>
</div>
...
...
@@ -177,34 +178,116 @@ SRCT Go • Administration Panel
</tbody>
</table>
<!-- indent looks bad but I used dhaynes favorite text editior so it's ok-->
<!-- display our removal and blocking buttons -->
<div
class=
"form-group"
>
<input
type=
"submit"
name=
"_remove"
value=
"Remove"
class=
"btn btn-danger btn-sm"
>
<a
class=
"btn btn-default btn-sm btn-blockUsr"
data-target=
"#blockModal-{{url.short}}"
data-toggle=
"modal"
style=
"background-color: black; color: white;"
>
Block
</a>
<!--Define Block Modal-->
<div
id=
"blockModal-{{url.short}}"
class=
"modal fade"
role=
"dialog"
tabindex=
"-1"
>
<div
class=
"modal-dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
style=
"background-color:#f5f5f5; border-radius: 7px"
>
<div
class=
"modal-header"
style=
"text-align:center;"
>
<h4
class=
"modal-title text-center"
style=
"font-weight:bold; font-size: 21px !important;"
>
Are you sure you would like to block this user?
</h4>
<h6
style=
"font-weight:500; margin-top: 0px; margin-bottom: 0px;"
>
Please remember the user's feelings
</h6>
</div>
<div
class=
"modal-body"
style=
"padding-bottom: 80px"
>
<a
type=
"button"
class=
"btn btn-success btn-lg"
style=
"border-width: 0px;float:left; width:49%; background-color: #A9B0AD; color: #ffffff; border-radius: 4px;"
data-dismiss=
"modal"
>
Cancel
</a>
<input
type=
"submit"
name=
"_block"
value=
"Block"
class=
"btn btn-danger btn-lg"
style=
"border-width: 0px; float:right; width:49%;background-color: #000000; color: #ffffff; border-radius: 4px;"
>
</div>
</div>
</div>
</div>
<a
class=
"btn btn-danger btn-sm"
data-target=
"#removeModal-{{url.short}}"
data-toggle=
"modal"
>
Remove
</a>
<a
class=
"btn btn-default btn-sm btn-blockUsr"
data-target=
"#blockModal-{{url.short}}"
data-toggle=
"modal"
style=
"background-color: black; color: white;"
>
Block
</a>
</div>
</form>
</div>
</div>
<!--Define Approve Modal-->
<div
id=
"approveModal-{{url.short}}"
class=
"modal fade"
role=
"dialog"
tabindex=
"-1"
>
<div
class=
"modal-dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
style=
"background-color:#f5f5f5; border-radius: 7px"
>
<div
class=
"modal-header"
style=
"text-align:center;"
>
<h4
class=
"modal-title text-center"
style=
"font-weight:bold; font-size: 21px !important;"
>
Are you sure you would like to approve: (put list here)
</h4>
<h6
style=
"font-weight:500; margin-top: 0px; margin-bottom: 0px;"
>
Please remember the user's feelings
</h6>
</div>
<div
class=
"modal-body"
style=
"padding-bottom: 80px"
>
<a
type=
"button"
class=
"btn btn-success btn-lg"
style=
"border-width: 0px;float:left; width:49%; background-color: #A9B0AD; color: #ffffff; border-radius: 4px;"
data-dismiss=
"modal"
>
Cancel
</a>
<input
type=
"submit"
name=
"_approve"
value=
"Approve"
class=
"btn btn-primary btn-lg"
style=
"border-width: 0px;float:right; width:49%; background-color: #00331a; color: #ffffff; border-radius: 4px;"
>
</div>
</div>
</div>
</div>
<!--Define Deny Modal-->
<div
id=
"denyModal-{{url.short}}"
class=
"modal fade"
role=
"dialog"
tabindex=
"-1"
>
<div
class=
"modal-dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
style=
"background-color:#f5f5f5; border-radius: 7px"
>
<div
class=
"modal-header"
style=
"text-align:center;"
>
<h4
class=
"modal-title text-center"
style=
"font-weight:bold; font-size: 21px !important;"
>
Are you sure you would like to deny: (put list here)
</h4>
<h6
style=
"font-weight:500; margin-top: 0px; margin-bottom: 0px;"
>
Please remember the user's feelings
</h6>
</div>
<div
class=
"modal-body"
style=
"padding-bottom: 80px"
>
<a
type=
"button"
class=
"btn btn-success btn-lg"
style=
"border-width: 0px;float:left; width:49%; background-color: #A9B0AD; color: #ffffff; border-radius: 4px;"
data-dismiss=
"modal"
>
Cancel
</a>
<input
type=
"submit"
name=
"_deny"
value=
"Deny"
class=
"btn btn-danger btn-lg"
style=
"border-width: 0px;float:right; width:49%; background-color: #ac1d37; color: #ffffff; border-radius: 4px;"
>
</div>
</div>
</div>
</div>
<!--Define Block Modal-->
<div
id=
"blockModal-{{url.short}}"
class=
"modal fade"
role=
"dialog"
tabindex=
"-1"
>
<div
class=
"modal-dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
style=
"background-color:#f5f5f5; border-radius: 7px"
>
<div
class=
"modal-header"
style=
"text-align:center;"
>
<h4
class=
"modal-title text-center"
style=
"font-weight:bold; font-size: 21px !important;"
>
Are you sure you would like to block user:
</h4>
<h6
style=
"font-weight:500; margin-top: 0px; margin-bottom: 0px;"
>
Please remember the user's feelings
</h6>
</div>
<div
class=
"modal-body"
style=
"padding-bottom: 80px"
>
<a
type=
"button"
class=
"btn btn-success btn-lg"
style=
"border-width: 0px;float:left; width:49%; background-color: #A9B0AD; color: #ffffff; border-radius: 4px;"
data-dismiss=
"modal"
>
Cancel
</a>
<input
type=
"submit"
name=
"_block"
value=
"Block"
class=
"btn btn-danger btn-lg"
style=
"border-width: 0px; float:right; width:49%;background-color: #000000; color: #ffffff; border-radius: 4px;"
>
</div>
</div>
</div>
</div>
<!--Define Un-Block Modal-->
<div
id=
"unblockModal-{{url.short}}"
class=
"modal fade"
role=
"dialog"
tabindex=
"-1"
>
<div
class=
"modal-dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
style=
"background-color:#f5f5f5; border-radius: 7px"
>
<div
class=
"modal-header"
style=
"text-align:center;"
>
<h4
class=
"modal-title text-center"
style=
"font-weight:bold; font-size: 21px !important;"
>
Are you sure you would like to unblock: (put list here)
</h4>
<h6
style=
"font-weight:500; margin-top: 0px; margin-bottom: 0px;"
>
Please remember the user's feelings
</h6>
</div>
<div
class=
"modal-body"
style=
"padding-bottom: 80px"
>
<a
type=
"button"
class=
"btn btn-success btn-lg"
style=
"border-width: 0px;float:left; width:49%; background-color: #A9B0AD; color: #ffffff; border-radius: 4px;"
data-dismiss=
"modal"
>
Cancel
</a>
<input
type=
"submit"
name=
"_unblock"
value=
"Un-Block"
class=
"btn btn-default btn-lg"
style=
"border-width: 0px;float:right; width:49%; background-color: #e7e7e7; color: #ffffff; border-radius: 4px;"
>
</div>
</div>
</div>
</div>
<!--Define Remove Modal-->
<div
id=
"removeModal-{{url.short}}"
class=
"modal fade"
role=
"dialog"
tabindex=
"-1"
>
<div
class=
"modal-dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
style=
"background-color:#f5f5f5; border-radius: 7px"
>
<div
class=
"modal-header"
style=
"text-align:center;"
>
<h4
class=
"modal-title text-center"
style=
"font-weight:bold; font-size: 21px !important;"
>
Are you sure you would like to remove: (put list here)
</h4>
<h6
style=
"font-weight:500; margin-top: 0px; margin-bottom: 0px;"
>
Please remember the user's feelings
</h6>
</div>
<div
class=
"modal-body"
style=
"padding-bottom: 80px"
>
<a
type=
"button"
class=
"btn btn-success btn-lg"
style=
"border-width: 0px;float:left; width:49%; background-color: #A9B0AD; color: #ffffff; border-radius: 4px;"
data-dismiss=
"modal"
>
Cancel
</a>
<input
type=
"submit"
name=
"_remove"
value=
"Remove"
class=
"btn btn-danger btn-lg"
style=
"border-width: 0px; float:right; width:49%;background-color: #ac1d37; color: #ffffff; border-radius: 4px;"
>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment