mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
remove groups websites
This commit is contained in:
@@ -16,15 +16,6 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
|||||||
group._editing = false;
|
group._editing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.addWebsite = function(group){
|
|
||||||
group.websites.push(group._newWebsite);
|
|
||||||
group._newWebsite = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.removeWebsite = function(group, $index){
|
|
||||||
group.websites.splice($index,1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------ Modals ------
|
// ------ Modals ------
|
||||||
|
|
||||||
$scope.clickMember = function(uid, forceShow) {
|
$scope.clickMember = function(uid, forceShow) {
|
||||||
|
|||||||
@@ -25,15 +25,6 @@ a.pull-right.gem-wallet(popover-trigger='mouseenter', popover-title='Guild Bank'
|
|||||||
.control-group.option-large
|
.control-group.option-large
|
||||||
label.control-label Logo URL
|
label.control-label Logo URL
|
||||||
input.option-content(type='url', placeholder='Logo URL', ng-model='group.logo')
|
input.option-content(type='url', placeholder='Logo URL', ng-model='group.logo')
|
||||||
.control-group.option-large
|
|
||||||
label.control-label Websites
|
|
||||||
form(ng-submit='addWebsite(group)')
|
|
||||||
input.option-content(type='url', ng-model='group._newWebsite', placeholder='Add Website')
|
|
||||||
ul
|
|
||||||
li(ng-repeat='website in group.websites')
|
|
||||||
| {{website}}
|
|
||||||
a(ng-click='removeWebsite(group, $index)')
|
|
||||||
i.icon-remove
|
|
||||||
|
|
||||||
h4 Assign Group Leader
|
h4 Assign Group Leader
|
||||||
select#group-leader-selection(ng-model='group._newLeader', ng-options='member.profile.name for member in group.members')
|
select#group-leader-selection(ng-model='group._newLeader', ng-options='member.profile.name for member in group.members')
|
||||||
@@ -41,11 +32,6 @@ a.pull-right.gem-wallet(popover-trigger='mouseenter', popover-title='Guild Bank'
|
|||||||
div(ng-show='!group._editing')
|
div(ng-show='!group._editing')
|
||||||
img.pull-right(ng-show='group.logo', style='max-width:150px', ng-src='{{group.logo}}')
|
img.pull-right(ng-show='group.logo', style='max-width:150px', ng-src='{{group.logo}}')
|
||||||
markdown(ng-model='group.description')
|
markdown(ng-model='group.description')
|
||||||
div(ng-show='group.websites')
|
|
||||||
h4 Websites
|
|
||||||
ul
|
|
||||||
li(ng-repeat='website in group.websites')
|
|
||||||
a(target='_blank', ng-href='{{website}}') {{website}}
|
|
||||||
|
|
||||||
include ./challenge-box
|
include ./challenge-box
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user