Skip to content

Commit

Permalink
Merge pull request learningequality#4 from rayykim/usermanage
Browse files Browse the repository at this point in the history
Usermanage
  • Loading branch information
DXCanas authored Aug 5, 2016
2 parents 07701af + 18dd79a commit 1a087f3
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 17 deletions.
23 changes: 18 additions & 5 deletions kolibri/plugins/management/assets/src/vue/user-create-modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@

<div class="user-creation-modal">
<modal btntext="Add New">
<div class="title" slot="header">User creation</div>
<div class="title" slot="header">Add New Account</div>
<div slot="body">
<br>Username: <input type="text" v-model="username" placeholder="Please type in your username."><br>
<br>Password: <input type="text" v-model="password" placeholder="Please type in your password."><br>
<br>First name: <input type="text" v-model="firstName" placeholder="Please type in your first name."><br>
<br>Last name: <input type="text" v-model="lastName" placeholder="Please type in your last name."><br>
<div class="name">
<label for="name">Name</label>
<input type="text" v-model="username" placeholder="Please type in your username.">
</div>
<div class="username">
<label>Username</label>
<input type="text" v-model="password" placeholder="Please type in your password.">
</div>
<div class="password">
<label>Password</label>
<input type="text" v-model="firstName" placeholder="Please type in your first name.">
</div>
<div class="confirm">
<label>Confirm Password</label>
<input type="text" v-model="lastName" placeholder="Please type in your last name.">
</div>
<!-- radio buttons for selecting role -->
<br>Learner <input type="radio" value="learner" v-model="role"><br>
<br>Admin <input type="radio" value="admin" v-model="role"><br>
Expand Down Expand Up @@ -96,6 +108,7 @@
.add-text
float: left
padding-top: 6px
</style>

52 changes: 40 additions & 12 deletions kolibri/plugins/management/assets/src/vue/user-roster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
<option value="learner"> Learners </option>
</select>


<input v-model="searchFilter" type="search">
<svg class="search-button" src="./icons/search.svg"></svg>
<input
v-model="searchFilter"
type="search"
placeholder="Search for a user...">

<div class="create">
<user-create-modal></user-create-modal>
</div>

</div>


<hr>

<table class="roster">
Expand Down Expand Up @@ -184,14 +184,18 @@
float: right
input[type='search']
float: left
margin: 0 0 10px 10px
width: 400px
height: 25px
border-radius: 10px
padding: inherit
border: 1px solid #686868
display: inline-block
border: 1px solid #ccc
box-shadow: inset 0 1px 3px #ddd
border-radius: 2em
padding: 0.5em 1em
vertical-align: middle
box-sizing: border-box
position: relative
left: 10px
&:focus
outline: none
border-color: $core-text-annotation
select[name='user-filter']
float: left
Expand Down Expand Up @@ -239,4 +243,28 @@
width: 20px
height: 20px
.searchbar .search-button
display: inline-block
float: left
position: relative
left: 5px
top: 1px
.searchbar:after
content: ''
display: table
clear: both
.searchbar
border-radius: 5px
padding: inherit
border: 1px solid #686868
width: 40%
min-width: 200px
max-width: 300px
height: 25px
float: left
position: relative
left: 10px
</style>
1 change: 1 addition & 0 deletions src/kolibri
Submodule kolibri added at e2464d

0 comments on commit 1a087f3

Please sign in to comment.