Skip to content
Snippets Groups Projects
Verified Commit 67aef15a authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #236: front-end to manage users default permissions

parent 7ad19a3f
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,13 @@
<label :for="setting.identifier">{{ setting.verbose_name }}</label>
<p v-if="setting.help_text">{{ setting.help_text }}</p>
</div>
<select
v-else-if="setting.field.class === 'MultipleChoiceField'"
v-model="values[setting.identifier]"
multiple
class="ui search selection dropdown">
<option v-for="v in setting.additional_data.choices" :value="v[0]">{{ v[1] }}</option>
</select>
</div>
<button
type="submit"
......
......@@ -51,12 +51,12 @@ export default {
if (self.$store.state.route.hash) {
self.scrollTo(self.$store.state.route.hash.substr(1))
}
$('select.dropdown').dropdown()
})
})
},
methods: {
scrollTo (id) {
console.log(id, 'hello')
this.current = id
document.getElementById(id).scrollIntoView()
},
......@@ -86,7 +86,8 @@ export default {
id: 'users',
settings: [
'users__registration_enabled',
'common__api_authentication_required'
'common__api_authentication_required',
'users__default_permissions'
]
},
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment