-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from AreaFiftyLAN/feature-web_tab
Add web tab to admin page
- Loading branch information
Showing
18 changed files
with
2,264 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html"> | ||
<link rel="import" href="../../bower_components/iron-iconset-svg/iron-iconset-svg.html"> | ||
|
||
<iron-iconset-svg size="24" name="commission"> | ||
<svg><defs> | ||
<g id="attach-money"><path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"></path></g> | ||
<g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"></path></g> | ||
<g id="chrome-reader-mode"><path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"></path></g> | ||
<g id="gavel"><path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z"></path></g> | ||
<g id="settings"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></g> | ||
<g id="local-shipping"><path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g> | ||
<g id="notifications"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"></path></g> | ||
</defs></svg> | ||
</iron-iconset-svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<link rel="import" href="../../bower_components/polymer/polymer.html"> | ||
<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout-classes.html"> | ||
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html"> | ||
|
||
<link rel="import" href="lancie-admin-committee-icons.html"> | ||
|
||
<dom-module id="lancie-admin-committee-member"> | ||
<template> | ||
<style> | ||
:host { | ||
display: block; | ||
} | ||
|
||
iron-icon { | ||
margin-right: 10px; | ||
} | ||
|
||
.delete-button { | ||
cursor: pointer; | ||
} | ||
|
||
.align-right { | ||
text-align: right; | ||
} | ||
</style> | ||
|
||
<custom-style> | ||
<style is="custom-style"> | ||
.flex-horizontal-with-ratios { | ||
@apply (--layout-horizontal); | ||
} | ||
.flexchild { | ||
@apply (--layout-flex); | ||
} | ||
.flex2child { | ||
@apply (--layout-flex-4); | ||
} | ||
.flex3child { | ||
@apply (--layout-flex-9); | ||
} | ||
</style> | ||
</custom-style> | ||
|
||
<paper-item class="container flex-horizontal-with-ratios"> | ||
<div class="flex2child">[[member.name]]</div> | ||
<div class="flex3child"> | ||
<iron-icon icon="commission:[[member.icon]]"></iron-icon>[[member.function]] | ||
</div> | ||
<div class="flexchild">[[member.position]]</div> | ||
<div class="flexchild align-right"> | ||
<iron-icon icon="icons:delete" on-tap="deleteMemberDialog" class="delete-button"></iron-icon> | ||
</div> | ||
</paper-item> | ||
|
||
</template> | ||
<script> | ||
(function() { | ||
'use strict'; | ||
|
||
class LancieAdminCommitteeMember extends Polymer.Element { | ||
static get is() { | ||
return 'lancie-admin-committee-member'; | ||
} | ||
|
||
static get properties() { | ||
return { | ||
member: Object | ||
} | ||
} | ||
|
||
deleteMemberDialog() { | ||
this.dispatchEvent(new CustomEvent('delete-member-dialog', { | ||
detail: { | ||
position: this.member.position | ||
}, | ||
bubbles: true, | ||
composed: true | ||
})); | ||
} | ||
} | ||
|
||
customElements.define(LancieAdminCommitteeMember.is, LancieAdminCommitteeMember); | ||
})(); | ||
</script> | ||
</dom-module> |
Oops, something went wrong.