MDL-56979 group: Template and styles fixes

* Remove custom styles for groups since we're using default Bootstrap
  styles now.
* Hidden input breaks grid layout. Moved it inside the groups column.
* Removed unnecessary 'groups' and 'members' classes. They are not being
  used in JS nor CSS.
This commit is contained in:
Jun Pataleta 2017-06-21 11:02:16 +08:00
parent 91fe23133c
commit a7184670fd
6 changed files with 3 additions and 54 deletions

View File

@ -78,8 +78,8 @@
<form id="groupeditform" action="index.php" method="post"> <form id="groupeditform" action="index.php" method="post">
<div class="container-fluid groupmanagementtable"> <div class="container-fluid groupmanagementtable">
<div class="row row-fluid rtl-compatible"> <div class="row row-fluid rtl-compatible">
<input type="hidden" name="id" value="{{courseid}}"> <div class="col-md-6 span6 m-b-1">
<div class="col-md-6 span6 m-b-1 groups"> <input type="hidden" name="id" value="{{courseid}}">
<div class="form-group"> <div class="form-group">
<label for="groups"> <label for="groups">
<span id="groupslabel">{{#str}}groups{{/str}}</span> <span id="groupslabel">{{#str}}groups{{/str}}</span>
@ -110,7 +110,7 @@
<input type="submit" name="act_showimportgroups" id="showimportgroups" value="{{#str}}importgroups, group{{/str}}" class="btn btn-default" /> <input type="submit" name="act_showimportgroups" id="showimportgroups" value="{{#str}}importgroups, group{{/str}}" class="btn btn-default" />
</div> </div>
</div> </div>
<div class="col-md-6 span6 m-b-1 members"> <div class="col-md-6 span6 m-b-1">
<div class="form-group"> <div class="form-group">
<label for="members"> <label for="members">
<span id="memberslabel">{{#str}}membersofselectedgroup, group{{/str}}</span> <span id="memberslabel">{{#str}}membersofselectedgroup, group{{/str}}</span>

View File

@ -346,9 +346,6 @@ a.skip:active {
margin-left: 43px; margin-left: 43px;
} }
// Group // Group
#page-group-index #groupeditform {
text-align: center;
}
#doc-contents h1 { #doc-contents h1 {
margin: 1em 0 0 0; margin: 1em 0 0 0;

View File

@ -277,21 +277,6 @@
} }
} }
#groupeditform {
.groups,
.members {
min-width: 175px;
width: 49%;
float: left;
text-align: left;
select {
min-width: 175px;
max-width: 90%;
}
}
}
// Remove the little cog from participants page because we are putting a cog menu there. // Remove the little cog from participants page because we are putting a cog menu there.
.userlist h3 .action-icon { .userlist h3 .action-icon {
display: none; display: none;

View File

@ -429,9 +429,6 @@ a.skip:active {
margin-left: 43px; margin-left: 43px;
} }
// Group // Group
#page-group-index #groupeditform {
text-align: center;
}
#doc-contents h1 { #doc-contents h1 {
margin: 1em 0 0 0; margin: 1em 0 0 0;
} }

View File

@ -264,21 +264,6 @@
} }
} }
#groupeditform {
.groups,
.members {
min-width: 175px;
width: 49%;
float: left;
text-align: left;
select {
min-width: 175px;
max-width: 90%;
}
}
}
/** Preferences page */ /** Preferences page */
.preferences-group { .preferences-group {
ul { ul {

View File

@ -2723,9 +2723,6 @@ a.skip:active {
.blog_entry .content { .blog_entry .content {
margin-left: 43px; margin-left: 43px;
} }
#page-group-index #groupeditform {
text-align: center;
}
#doc-contents h1 { #doc-contents h1 {
margin: 1em 0 0 0; margin: 1em 0 0 0;
} }
@ -9891,18 +9888,6 @@ body.path-question-type .mform fieldset.hidden {
.profileeditor > .singlebutton input { .profileeditor > .singlebutton input {
margin: 0; margin: 0;
} }
#groupeditform .groups,
#groupeditform .members {
min-width: 175px;
width: 49%;
float: left;
text-align: left;
}
#groupeditform .groups select,
#groupeditform .members select {
min-width: 175px;
max-width: 90%;
}
/** Preferences page */ /** Preferences page */
.preferences-group ul { .preferences-group ul {
list-style: none; list-style: none;