Download clients now use thingy provider

This commit is contained in:
Mark McDowall
2014-02-13 21:31:49 -08:00
parent ba22600412
commit 606d78f5e1
123 changed files with 2076 additions and 1820 deletions
@@ -1,4 +1,4 @@
<div class="add-notification-item span3">
<div class="add-thingy span3">
<div class="row">
<div class="span3">
{{implementation}}
@@ -3,7 +3,7 @@
<h3>Add Notification</h3>
</div>
<div class="modal-body">
<div class="add-notifications">
<div class="add-notifications add-thingies">
<ul class="items"></ul>
</div>
</div>
@@ -1,8 +1,8 @@
<div class="row">
<div class="span12">
<ul class="notifications">
<ul class="notifications thingies">
<li>
<div class="notification-item add-card x-add-card">
<div class="notification-item thingy add-card x-add-card">
<span class="center well">
<i class="icon-plus" title="Add Connection"/>
</span>
@@ -1,4 +1,4 @@
<div class="notification-item">
<div class="notification-item thingy">
<div>
<h3>{{name}}</h3>
<span class="btn-group pull-right">
@@ -22,7 +22,7 @@ define(
},
events: {
'click .x-save' : '_saveNotification',
'click .x-save' : '_saveClient',
'click .x-save-and-add': '_saveAndAddNotification',
'click .x-delete' : '_deleteNotification',
'click .x-back' : '_back',
@@ -38,7 +38,7 @@ define(
this._onDownloadChanged();
},
_saveNotification: function () {
_saveClient: function () {
var self = this;
var promise = this.model.saveSettings();
+5 -5
View File
@@ -2,16 +2,16 @@
define([
'AppLayout',
'Settings/Notifications/Collection',
'Settings/Notifications/AddView',
'System/StatusModel'
], function (AppLayout, NotificationCollection, AddSelectionNotificationView, StatusModel) {
'Settings/Notifications/AddView'
], function (AppLayout, NotificationCollection, AddSelectionNotificationView) {
return ({
open: function (collection) {
var schemaCollection = new NotificationCollection();
schemaCollection.url = StatusModel.get('urlBase') + '/api/notification/schema';
var orginalUrl = schemaCollection.url;
schemaCollection.url = schemaCollection.url + '/schema';
schemaCollection.fetch();
schemaCollection.url = StatusModel.get('urlBase') + '/api/notification';
schemaCollection.url = orginalUrl;
var view = new AddSelectionNotificationView({ collection: schemaCollection, notificationCollection: collection});
AppLayout.modalRegion.show(view);
@@ -1,70 +1,17 @@
@import "../../Shared/Styles/card.less";
@import "../../Shared/Styles/clickable.less";
.add-notification-item {
.card;
cursor: pointer;
font-size: 24px;
font-weight: lighter;
text-align: center;
a {
font-size: 16px;
color: #595959;
i {
.clickable;
}
}
a:hover {
text-decoration: none;
}
}
.add-notifications {
text-align: center;
.items {
list-style-type: none;
margin: 0px;
li {
display: inline-block;
vertical-align: top;
}
}
}
.notifications {
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
li {
display: inline-block;
vertical-align: top;
}
}
.notification-item {
.card;
.notification-item {
width: 290px;
height: 90px;
padding: 20px 20px;
h3 {
margin-top: 0px;
display: inline-block;
width: 230px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.btn-group {
margin-top: 8px;
}
.settings {