badge_create.tpl 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. <script>
  2. (function () {
  3. var designer = null;
  4. $(document).on('ready', function () {
  5. $('.help-badges').tooltip();
  6. $('.help-badges-img').tooltip();
  7. });
  8. $(document).on('ready', function () {
  9. $('#btn-open-designer').on('click', function (e) {
  10. e.preventDefault();
  11. var designerUrl = 'https://www.openbadges.me/designer.html?origin={{ _p.web }}';
  12. designerUrl = designerUrl + '&email={{ platformAdminEmail }}';
  13. designerUrl = designerUrl + '&close=true';
  14. designerUrl = designerUrl + '&hidePublish=true';
  15. var windowOptions = 'width=1200,height=680,location=0,menubar=0,status=0,toolbar=0';
  16. designer = window.open(designerUrl, '', windowOptions);
  17. });
  18. $('#image').on('change', function () {
  19. var self = this;
  20. if (self.files.length > 0) {
  21. var image = self.files[0];
  22. if (!image.type.match(/image.*/)) {
  23. return;
  24. }
  25. var fileReader = new FileReader();
  26. fileReader.onload = function (e) {
  27. $('#badge-preview').attr('src', e.target.result);
  28. $('#badge-container').removeClass('hide');
  29. };
  30. fileReader.readAsDataURL(image);
  31. }
  32. });
  33. });
  34. })();
  35. </script>
  36. <div class="row">
  37. <div class="col-md-9">
  38. <form action="{{ _p.web_self_query_vars }}" class="form-horizontal" method="post" enctype="multipart/form-data">
  39. <legend>
  40. {{ skill.name }}
  41. </legend>
  42. <fieldset>
  43. <div class="form-group">
  44. <label class="col-sm-2 control-label" for="image">{{ 'Image' | get_lang }}</label>
  45. <div class="col-sm-10">
  46. <input data-placement="left" data-toggle="tooltip" title="{{ "BadgeMeasuresXPixelsInPNG" | get_lang }}" type="file" name="image" id="image" class="help-badges-img" accept="image/*">
  47. </div>
  48. </div>
  49. <div class="form-group collapse" id="badge-studio-frame">
  50. <label class="col-sm-2 control-label" for="criteria"></label>
  51. <div class="col-sm-10">
  52. <h1 class="title">Badge Studio</h1>
  53. <div class="" id="studio">
  54. <div id="input">
  55. <div class="row">
  56. <div class="col-md-4">
  57. <h3 class="label"><label for="studio-mask">{{ "Templates" | get_lang }}</label></h3>
  58. <select name="template" class="form-control" id="studio-template" data-path="{{ badge_studio.templates }}">
  59. <option value="template-1">{{ "Template" | get_lang }} 1</option>
  60. <option value="template-2">{{ "Template" | get_lang }} 2</option>
  61. <option value="template-3">{{ "Template" | get_lang }} 3</option>
  62. </select>
  63. <h3 class="label"><label for="studio-mask">{{ "Palettes" | get_lang }}</label></h3>
  64. <select name="palette" class="form-control" id="studio-palette">
  65. <option value="palette-1"
  66. data-color-background="#CE001F"
  67. data-color-stitching="#FFF"
  68. data-color-border="#4C4F53"
  69. data-color-detail="#999"
  70. data-color-glyph="#FFF">{{ "Palette" | get_lang }} 1</option>
  71. <option value="palette-2"
  72. data-color-background="#04A"
  73. data-color-stitching="#0AE"
  74. data-color-border="#0AE"
  75. data-color-detail="#FFF"
  76. data-color-glyph="#FFF">{{ "Palette" | get_lang }} 2</option>
  77. <option value="palette-3"
  78. data-color-background="#11458B"
  79. data-color-stitching="#3EB48D"
  80. data-color-border="#3EB48D"
  81. data-color-detail="#FFF"
  82. data-color-glyph="#FFF">{{ "Palette" | get_lang }} 3</option>
  83. </select>
  84. <br />
  85. <h3 class="label"><label for="studio-mask">{{ "Colors" | get_lang }}</label></h3>
  86. <div id="custom-palette"></div>
  87. </div>
  88. <div class="col-md-8">
  89. <div id="output"></div>
  90. </div>
  91. </div>
  92. <div class="row">
  93. <div class="col-md-3">
  94. <h3 class="label"><label for="studio-mask">{{ "Mask" | get_lang }}</label></h3>
  95. <p class="item">
  96. <select name="mask" class="form-control" id="studio-mask" data-path="{{ badge_studio.masks }}">
  97. <option value="">{{ "None" | get_lang }}</option>
  98. <option value="lines">{{ "Lines" | get_lang }}</option>
  99. </select>
  100. </p>
  101. </div>
  102. <div class="col-md-3">
  103. <h3 class="label"><label for="studio-options">{{ "Options" | get_lang }}</label></h3>
  104. <p class="item" id="options">
  105. <i>None</i>
  106. </p>
  107. </div>
  108. <div class="col-md-6">
  109. <h3 class="label"><label for="studio-glyph">{{ "Icon" | get_lang }}</label></h3>
  110. <p class="item">
  111. <select name="glyph" class="form-control" id="studio-glyph">
  112. <option value="">None</option>
  113. <option value="ambulance">Ambulance</option>
  114. <option value="anchor">Anchor</option>
  115. <option value="android">Android</option>
  116. <option value="angle-down">Angle: Down</option>
  117. <option value="angle-double-down">Angle: Down (Double)</option>
  118. <option value="angle-left">Angle: Left</option>
  119. <option value="angle-double-left">Angle: Left (Double)</option>
  120. <option value="angle-right">Angle: Right</option>
  121. <option value="angle-double-right">Angle: Right (Double)</option>
  122. <option value="angle-up">Angle: Up</option>
  123. <option value="angle-double-up">Angle: Up (Double)</option>
  124. <option value="apple">Apple</option>
  125. <option value="archive">Archive</option>
  126. <option value="arrow-down">Arrow: Down</option>
  127. <option value="arrow-circle-down">Arrow: Down (Circle)</option>
  128. <option value="arrow-circle-o-down">Arrow: Down (Circle-O)</option>
  129. <option value="arrow-left">Arrow (Left)</option>
  130. <option value="arrow-circle-left">Arrow: Left (Circle)</option>
  131. <option value="arrow-circle-o-left">Arrow: Left (Circle-O)</option>
  132. <option value="arrow-right">Arrow: Right</option>
  133. <option value="arrow-circle-right">Arrow: Right (Circle)</option>
  134. <option value="arrow-circle-o-right">Arrow: Right (Circle-O)</option>
  135. <option value="arrow-up">Arrow: Up</option>
  136. <option value="arrow-circle-up">Arrow: Up (Circle)</option>
  137. <option value="arrow-circle-o-up">Arrow: Up (Circle-O)</option>
  138. <option value="arrows">Arrows</option>
  139. <option value="arrows-alt">Arrows (Alt)</option>
  140. <option value="arrows-h">Arrows: Horizontal</option>
  141. <option value="arrows-v">Arrows: Vertical</option>
  142. <option value="asterisk">Asterisk</option>
  143. <option value="automobile">Automobile</option>
  144. <option value="backward">Backward</option>
  145. <option value="ban">Ban</option>
  146. <option value="bank">Bank</option>
  147. <option value="bar-chart-o">Bar Chart (O)</option>
  148. <option value="barcode">Barcode</option>
  149. <option value="bars">Bars</option>
  150. <option value="beer">Beer</option>
  151. <option value="behance">Behance</option>
  152. <option value="behance-square">Behance (Square)</option>
  153. <option value="bell">Bell</option>
  154. <option value="bell-o">Bell (O)</option>
  155. <option value="bitbucket">BitBucket</option>
  156. <option value="bitbucket-square">BitBucket (Square)</option>
  157. <option value="bitcoin">Bitcoin</option>
  158. <option value="bold">Bold</option>
  159. <option value="bolt">Bolt</option>
  160. <option value="bomb">Bomb</option>
  161. <option value="book">Book</option>
  162. <option value="bookmark">Bookmark</option>
  163. <option value="bookmark-o">Bookmark (O)</option>
  164. <option value="briefcase">Briefcase</option>
  165. <option value="btc">BTC</option>
  166. <option value="bug">Bug</option>
  167. <option value="building">Building</option>
  168. <option value="building-o">Building (O)</option>
  169. <option value="bullhorn">Bullhorn</option>
  170. <option value="bullseye">Bullseye</option>
  171. <option value="cab">Cab</option>
  172. <option value="calendar">Calendar</option>
  173. <option value="calendar-o">Calendar (O)</option>
  174. <option value="camera">Camera</option>
  175. <option value="camera-retro">Camera (Retro)</option>
  176. <option value="car">Car</option>
  177. <option value="caret-down">Caret: Down</option>
  178. <option value="caret-square-o-down">Caret: Down (Square-O)</option>
  179. <option value="caret-left">Caret: Left</option>
  180. <option value="caret-square-o-left">Caret: Left (Square-O)</option>
  181. <option value="caret-right">Caret: Right</option>
  182. <option value="caret-square-o-right">Caret: Right (Square-O)</option>
  183. <option value="caret-up">Caret: Up</option>
  184. <option value="caret-square-o-up">Caret: Up (Square-O)</option>
  185. <option value="certificate">Certificate</option>
  186. <option value="chain">Chain</option>
  187. <option value="chain-broken">Chain (Broken)</option>
  188. <option value="check">Check</option>
  189. <option value="check-circle">Check (Circle)</option>
  190. <option value="check-circle-o">Check (Circle-O)</option>
  191. <option value="check-square">Check (Square)</option>
  192. <option value="check-square-o">Check (Square-O)</option>
  193. <option value="chevron-down">Chevron: Down</option>
  194. <option value="chevron-circle-down">Chevron: Down (Circle)</option>
  195. <option value="chevron-left">Chevron: Left</option>
  196. <option value="chevron-circle-left">Chevron: Left (Circle)</option>
  197. <option value="chevron-right">Chevron: Right</option>
  198. <option value="chevron-circle-right">Chevron: Right (Circle)</option>
  199. <option value="chevron-up">Chevron: Up</option>
  200. <option value="chevron-circle-up">Chevron: Up (Circle)</option>
  201. <option value="child">Child</option>
  202. <option value="circle">Circle</option>
  203. <option value="circle-o">Circle (O)</option>
  204. <option value="circle-o-notch">Circle (O Notch)</option>
  205. <option value="circle-thin">Circle (Thin)</option>
  206. <option value="clipboard">Clipboard</option>
  207. <option value="clock-o">Clock (O)</option>
  208. <option value="cloud">Cloud</option>
  209. <option value="cloud-download">Cloud: Download</option>
  210. <option value="cloud-upload">Cloud: Upload</option>
  211. <option value="cny">CNY</option>
  212. <option value="code">Code</option>
  213. <option value="code-fork">Code (Fork)</option>
  214. <option value="codepen">Codepen</option>
  215. <option value="coffee">Coffee</option>
  216. <option value="cog">Cog</option>
  217. <option value="cogs">Cogs</option>
  218. <option value="columns">Columns</option>
  219. <option value="comment">Comment</option>
  220. <option value="comment-o">Comment (O)</option>
  221. <option value="comments">Comments</option>
  222. <option value="comments-o">Comments (O)</option>
  223. <option value="compass">Compass</option>
  224. <option value="compress">Compress</option>
  225. <option value="copy">Copy</option>
  226. <option value="credit-card">Credit (Card)</option>
  227. <option value="crop">Crop</option>
  228. <option value="crosshairs">Crosshairs</option>
  229. <option value="css3">CSS3</option>
  230. <option value="cube">Cube</option>
  231. <option value="cubes">Cubes</option>
  232. <option value="cut">Cut</option>
  233. <option value="cutlery">Cutlery</option>
  234. <option value="dashboard">Dashboard</option>
  235. <option value="database">Database</option>
  236. <option value="dedent">Dedent</option>
  237. <option value="delicious">Delicious</option>
  238. <option value="desktop">Desktop</option>
  239. <option value="deviantart">Deviantart</option>
  240. <option value="digg">Digg</option>
  241. <option value="dollar">Dollar</option>
  242. <option value="dot-circle-o">Dot (Circle-O)</option>
  243. <option value="download">Download</option>
  244. <option value="dribbble">Dribbble</option>
  245. <option value="dropbox">Dropbox</option>
  246. <option value="drupal">Drupal</option>
  247. <option value="edit">Edit</option>
  248. <option value="eject">Eject</option>
  249. <option value="ellipsis-h">Ellipsis (Horizontal)</option>
  250. <option value="ellipsis-v">Ellipsis (Vertical)</option>
  251. <option value="empire">Empire</option>
  252. <option value="envelope">Envelope</option>
  253. <option value="envelope-o">Envelope (O)</option>
  254. <option value="envelope-square">Envelope (Square)</option>
  255. <option value="eraser">Eraser</option>
  256. <option value="eur">EUR</option>
  257. <option value="euro">Euro</option>
  258. <option value="exchange">Exchange</option>
  259. <option value="exclamation">Exclamation</option>
  260. <option value="exclamation-circle">Exclamation (Circle)</option>
  261. <option value="exclamation-triangle">Exclamation (Triangle)</option>
  262. <option value="expand">Expand</option>
  263. <option value="external-link">External Link</option>
  264. <option value="external-link-square">External Link (Square)</option>
  265. <option value="eye">Eye</option>
  266. <option value="eye-slash">Eye (Slash)</option>
  267. <option value="facebook">Facebook</option>
  268. <option value="facebook-square">Facebook (Square)</option>
  269. <option value="fast-backward">Fast Rewind</option>
  270. <option value="fast-forward">Fast Forward</option>
  271. <option value="fax">Fax</option>
  272. <option value="female">Female</option>
  273. <option value="fighter-jet">Fighter Jet</option>
  274. <option value="file">File</option>
  275. <option value="file-o">File (O)</option>
  276. <option value="files-o">Files (O)</option>
  277. <option value="file-archive-o">File: Archive (O)</option>
  278. <option value="file-audio-o">File: Audio (O)</option>
  279. <option value="file-code-o">File: Code (O)</option>
  280. <option value="file-excel-o">File: Excel (O)</option>
  281. <option value="file-image-o">File: Image (O)</option>
  282. <option value="file-movie-o">File: Movie (O)</option>
  283. <option value="file-pdf-o">File: PDF (O)</option>
  284. <option value="file-photo-o">File: Photo (O)</option>
  285. <option value="file-picture-o">File: Picture (O)</option>
  286. <option value="file-powerpoint-o">File: Powerpoint (O)</option>
  287. <option value="file-sound-o">File: Sound (O)</option>
  288. <option value="file-text">File: Text</option>
  289. <option value="file-text-o">File: Text (O)</option>
  290. <option value="file-video-o">File: Video (O)</option>
  291. <option value="file-word-o">File: Word (O)</option>
  292. <option value="file-zip-o">File: Zip (O)</option>
  293. <option value="film">Film</option>
  294. <option value="filter">Filter</option>
  295. <option value="fire">Fire</option>
  296. <option value="fire-extinguisher">Fire Extinguisher</option>
  297. <option value="flag">Flag</option>
  298. <option value="flag-o">Flag (O)</option>
  299. <option value="flag-checkered">Flag: Checkered</option>
  300. <option value="flash">Flash</option>
  301. <option value="flask">Flask</option>
  302. <option value="flickr">Flickr</option>
  303. <option value="floppy-o">Floppy (O)</option>
  304. <option value="folder">Folder</option>
  305. <option value="folder-o">Folder (O)</option>
  306. <option value="folder-open">Folder: Open</option>
  307. <option value="folder-open-o">Folder: Open (O)</option>
  308. <option value="font">Font</option>
  309. <option value="forward">Forward</option>
  310. <option value="foursquare">Foursquare</option>
  311. <option value="frown-o">Frown (O)</option>
  312. <option value="gamepad">Gamepad</option>
  313. <option value="gavel">Gavel</option>
  314. <option value="gbp">GBP</option>
  315. <option value="ge">Ge</option>
  316. <option value="gear">Gear</option>
  317. <option value="gears">Gears</option>
  318. <option value="gift">Gift</option>
  319. <option value="git">Git</option>
  320. <option value="git-square">Git (Square)</option>
  321. <option value="github">GitHub</option>
  322. <option value="github-alt">GitHub (Alt)</option>
  323. <option value="github-square">GitHub (Square)</option>
  324. <option value="gittip">GitTip</option>
  325. <option value="glass">Glass</option>
  326. <option value="globe">Globe</option>
  327. <option value="google">Google</option>
  328. <option value="google-plus">Google Plus</option>
  329. <option value="google-plus-square">Google Plus (Square)</option>
  330. <option value="graduation-cap">Graduation (Cap)</option>
  331. <option value="group">Group</option>
  332. <option value="h-square">H (Square)</option>
  333. <option value="hacker-news">Hacker News</option>
  334. <option value="hand-o-down">Hand: Down (O)</option>
  335. <option value="hand-o-left">Hand: Left (O)</option>
  336. <option value="hand-o-right">Hand: Right (O)</option>
  337. <option value="hand-o-up">Hand: Up (O)</option>
  338. <option value="hdd-o">HDD (O)</option>
  339. <option value="header">Header</option>
  340. <option value="headphones">Headphones</option>
  341. <option value="heart">Heart</option>
  342. <option value="heart-o">Heart (O)</option>
  343. <option value="history">History</option>
  344. <option value="home">Home</option>
  345. <option value="hospital-o">Hospital (O)</option>
  346. <option value="html5">HTML5</option>
  347. <option value="image">Image</option>
  348. <option value="inbox">Inbox</option>
  349. <option value="indent">Indent</option>
  350. <option value="info">Info</option>
  351. <option value="info-circle">Info (Circle)</option>
  352. <option value="inr">Inr</option>
  353. <option value="instagram">Instagram</option>
  354. <option value="institution">Institution</option>
  355. <option value="italic">Italic</option>
  356. <option value="joomla">Joomla</option>
  357. <option value="jpy">JPY</option>
  358. <option value="jsfiddle">JSFiddle</option>
  359. <option value="key">Key</option>
  360. <option value="keyboard-o">Keyboard (O)</option>
  361. <option value="krw">KRW</option>
  362. <option value="language">Language</option>
  363. <option value="laptop">Laptop</option>
  364. <option value="leaf">Leaf</option>
  365. <option value="legal">Legal</option>
  366. <option value="lemon-o">Lemon (O)</option>
  367. <option value="level-down">Level Down</option>
  368. <option value="level-up">Level Up</option>
  369. <option value="life-bouy">Life Bouy</option>
  370. <option value="life-ring">Life Ring</option>
  371. <option value="life-saver">Life Saver</option>
  372. <option value="lightbulb-o">Lightbulb (O)</option>
  373. <option value="link">Link</option>
  374. <option value="linkedin">LinkedIn</option>
  375. <option value="linkedin-square">LinkedIn (Square)</option>
  376. <option value="linux">Linux</option>
  377. <option value="list">List</option>
  378. <option value="list-alt">List (Alt)</option>
  379. <option value="list-ol">List (Ol)</option>
  380. <option value="list-ul">List (Ul)</option>
  381. <option value="location-arrow">Location (Arrow)</option>
  382. <option value="lock">Lock</option>
  383. <option value="long-arrow-down">Long Arrow Down</option>
  384. <option value="long-arrow-left">Long Arrow Left</option>
  385. <option value="long-arrow-right">Long Arrow Right</option>
  386. <option value="long-arrow-up">Long Arrow Up</option>
  387. <option value="magic">Magic</option>
  388. <option value="magnet">Magnet</option>
  389. <option value="mail-forward">Mail: Forward</option>
  390. <option value="mail-reply">Mail: Reply</option>
  391. <option value="mail-reply-all">Mail: Reply All</option>
  392. <option value="male">Male</option>
  393. <option value="map-marker">Map Marker</option>
  394. <option value="maxcdn">MaxCDN</option>
  395. <option value="medkit">Medkit</option>
  396. <option value="meh-o">Meh (O)</option>
  397. <option value="microphone">Microphone</option>
  398. <option value="microphone-slash">Microphone (Slash)</option>
  399. <option value="minus">Minus</option>
  400. <option value="minus-circle">Minus (Circle)</option>
  401. <option value="minus-square">Minus (Square)</option>
  402. <option value="minus-square-o">Minus (Square O)</option>
  403. <option value="mobile">Mobile</option>
  404. <option value="mobile-phone">Mobile Phone</option>
  405. <option value="money">Money</option>
  406. <option value="moon-o">Moon (O)</option>
  407. <option value="mortar-board">Mortar Board</option>
  408. <option value="music">Music</option>
  409. <option value="navicon">Navicon</option>
  410. <option value="openid">Openid</option>
  411. <option value="outdent">Outdent</option>
  412. <option value="pagelines">Pagelines</option>
  413. <option value="paper-plane">Paper Plane</option>
  414. <option value="paper-plane-o">Paper Plane (O)</option>
  415. <option value="paperclip">Paper Clip</option>
  416. <option value="paragraph">Paragraph</option>
  417. <option value="paste">Paste</option>
  418. <option value="pause">Pause</option>
  419. <option value="paw">Paw</option>
  420. <option value="pencil">Pencil</option>
  421. <option value="pencil-square">Pencil (Square)</option>
  422. <option value="pencil-square-o">Pencil (Square-O)</option>
  423. <option value="phone">Phone</option>
  424. <option value="phone-square">Phone (Square)</option>
  425. <option value="photo">Photo</option>
  426. <option value="picture-o">Picture (O)</option>
  427. <option value="pied-piper">Pied Piper</option>
  428. <option value="pied-piper-alt">Pied Piper (Alt)</option>
  429. <option value="pied-piper-square">Pied Piper (Square)</option>
  430. <option value="pinterest">Pinterest</option>
  431. <option value="pinterest-square">Pinterest (Square)</option>
  432. <option value="plane">Plane</option>
  433. <option value="play">Play</option>
  434. <option value="play-circle">Play (Circle)</option>
  435. <option value="play-circle-o">Play (Circle-O)</option>
  436. <option value="plus">Plus</option>
  437. <option value="plus-circle">Plus (Circle)</option>
  438. <option value="plus-square">Plus (Square)</option>
  439. <option value="plus-square-o">Plus (Square-O)</option>
  440. <option value="power-off">Power Off</option>
  441. <option value="print">Print</option>
  442. <option value="puzzle-piece">Puzzle Piece</option>
  443. <option value="qq">Qq</option>
  444. <option value="qrcode">QR Code</option>
  445. <option value="question">Question</option>
  446. <option value="question-circle">Question (Circle)</option>
  447. <option value="quote-left">Quote: Left</option>
  448. <option value="quote-right">Quote: Right</option>
  449. <option value="ra">Ra</option>
  450. <option value="random">Random</option>
  451. <option value="rebel">Rebel</option>
  452. <option value="recycle">Recycle</option>
  453. <option value="reddit">Reddit</option>
  454. <option value="reddit-square">Reddit (Square)</option>
  455. <option value="refresh">Refresh</option>
  456. <option value="renren">Renren</option>
  457. <option value="reorder">Reorder</option>
  458. <option value="repeat">Repeat</option>
  459. <option value="reply">Reply</option>
  460. <option value="reply-all">Reply All</option>
  461. <option value="retweet">Retweet</option>
  462. <option value="rmb">Rmb</option>
  463. <option value="road">Road</option>
  464. <option value="rocket">Rocket</option>
  465. <option value="rotate-left">Rotate Left</option>
  466. <option value="rotate-right">Rotate Right</option>
  467. <option value="rouble">Rouble</option>
  468. <option value="rss">RSS</option>
  469. <option value="rss-square">RSS (Square)</option>
  470. <option value="rub">Rub</option>
  471. <option value="ruble">Ruble</option>
  472. <option value="rupee">Rupee</option>
  473. <option value="save">Save</option>
  474. <option value="scissors">Scissors</option>
  475. <option value="search">Search</option>
  476. <option value="search-minus">Search: Minus</option>
  477. <option value="search-plus">Search: Plus</option>
  478. <option value="send">Send</option>
  479. <option value="send-o">Send (O)</option>
  480. <option value="share">Share</option>
  481. <option value="share-alt">Share (Alt)</option>
  482. <option value="share-alt-square">Share (Alt Square)</option>
  483. <option value="share-square">Share (Square)</option>
  484. <option value="share-square-o">Share (Square-O)</option>
  485. <option value="shield">Shield</option>
  486. <option value="shopping-cart">Shopping Cart</option>
  487. <option value="sign-in">Sign In</option>
  488. <option value="sign-out">Sign Out</option>
  489. <option value="signal">Signal</option>
  490. <option value="sitemap">Sitemap</option>
  491. <option value="skype">Skype</option>
  492. <option value="slack">Slack</option>
  493. <option value="sliders">Sliders</option>
  494. <option value="smile-o">Smile (O)</option>
  495. <option value="sort">Sort</option>
  496. <option value="sort-asc">Sort: Asc</option>
  497. <option value="sort-desc">Sort: Desc</option>
  498. <option value="sort-down">Sort: Down</option>
  499. <option value="sort-up">Sort: Up</option>
  500. <option value="sort-alpha-asc">Sort: Alpha Asc</option>
  501. <option value="sort-alpha-desc">Sort: Alpha Desc</option>
  502. <option value="sort-amount-asc">Sort: Amount Asc</option>
  503. <option value="sort-amount-desc">Sort: Amount Desc</option>
  504. <option value="sort-numeric-asc">Sort: Numeric Asc</option>
  505. <option value="sort-numeric-desc">Sort: Numeric Desc</option>
  506. <option value="soundcloud">Soundcloud</option>
  507. <option value="space-shuttle">Space Shuttle</option>
  508. <option value="spinner">Spinner</option>
  509. <option value="spoon">Spoon</option>
  510. <option value="spotify">Spotify</option>
  511. <option value="square">Square</option>
  512. <option value="square-o">Square (O)</option>
  513. <option value="stack-exchange">Stack Exchange</option>
  514. <option value="stack-overflow">Stack Overflow</option>
  515. <option value="star">Star</option>
  516. <option value="star-half">Star (Half)</option>
  517. <option value="star-half-empty">Star (Half Empty)</option>
  518. <option value="star-half-full">Star (Half Full)</option>
  519. <option value="star-half-o">Star (Half O)</option>
  520. <option value="star-o">Star (O)</option>
  521. <option value="steam">Steam</option>
  522. <option value="steam-square">Steam (Square)</option>
  523. <option value="step-backward">Step Backward</option>
  524. <option value="step-forward">Step Forward</option>
  525. <option value="stethoscope">Stethoscope</option>
  526. <option value="stop">Stop</option>
  527. <option value="strikethrough">Strikethrough</option>
  528. <option value="stumbleupon">Stumbleupon</option>
  529. <option value="stumbleupon-circle">Stumbleupon (Circle)</option>
  530. <option value="subscript">Subscript</option>
  531. <option value="suitcase">Suitcase</option>
  532. <option value="sun-o">Sun (O)</option>
  533. <option value="superscript">Superscript</option>
  534. <option value="support">Support</option>
  535. <option value="table">Table</option>
  536. <option value="tablet">Tablet</option>
  537. <option value="tachometer">Tachometer</option>
  538. <option value="tag">Tag</option>
  539. <option value="tags">Tags</option>
  540. <option value="tasks">Tasks</option>
  541. <option value="taxi">Taxi</option>
  542. <option value="tencent-weibo">Tencent Weibo</option>
  543. <option value="terminal">Terminal</option>
  544. <option value="text-height">Text Height</option>
  545. <option value="text-width">Text Width</option>
  546. <option value="th">Th</option>
  547. <option value="th-large">Th (Large)</option>
  548. <option value="th-list">Th (List)</option>
  549. <option value="thumb-tack">Thumb Tack</option>
  550. <option value="thumbs-down">Thumbs Down</option>
  551. <option value="thumbs-o-down">Thumbs Down (O)</option>
  552. <option value="thumbs-up">Thumbs Up</option>
  553. <option value="thumbs-o-up">Thumbs Up (O)</option>
  554. <option value="ticket">Ticket</option>
  555. <option value="times">Times</option>
  556. <option value="times-circle">Times (Circle)</option>
  557. <option value="times-circle-o">Times (Circle O)</option>
  558. <option value="tint">Tint</option>
  559. <option value="toggle-down">Toggle Down</option>
  560. <option value="toggle-left">Toggle Left</option>
  561. <option value="toggle-right">Toggle Right</option>
  562. <option value="toggle-up">Toggle Up</option>
  563. <option value="trash-o">Trash (O)</option>
  564. <option value="tree">Tree</option>
  565. <option value="trello">Trello</option>
  566. <option value="trophy">Trophy</option>
  567. <option value="truck">Truck</option>
  568. <option value="try">Try</option>
  569. <option value="tumblr">Tumblr</option>
  570. <option value="tumblr-square">Tumblr (Square)</option>
  571. <option value="turkish-lira">Turkish Lira</option>
  572. <option value="twitter">Twitter</option>
  573. <option value="twitter-square">Twitter (Square)</option>
  574. <option value="umbrella">Umbrella</option>
  575. <option value="underline">Underline</option>
  576. <option value="undo">Undo</option>
  577. <option value="university">University</option>
  578. <option value="unlink">Unlink</option>
  579. <option value="unlock">Unlock</option>
  580. <option value="unlock-alt">Unlock (Alt)</option>
  581. <option value="unsorted">Unsorted</option>
  582. <option value="upload">Upload</option>
  583. <option value="usd">USD</option>
  584. <option value="user">User</option>
  585. <option value="user-md">User (MD)</option>
  586. <option value="users">Users</option>
  587. <option value="video-camera">Video (Camera)</option>
  588. <option value="vimeo-square">Vimeo (Square)</option>
  589. <option value="vine">Vine</option>
  590. <option value="vk">Vk</option>
  591. <option value="volume-up">Volume Up</option>
  592. <option value="volume-down">Volume Down</option>
  593. <option value="volume-off">Volume Off</option>
  594. <option value="warning">Warning</option>
  595. <option value="wechat">Wechat</option>
  596. <option value="weibo">Weibo</option>
  597. <option value="weixin">Weixin</option>
  598. <option value="wheelchair">Wheelchair</option>
  599. <option value="windows">Windows</option>
  600. <option value="won">Won</option>
  601. <option value="wordpress">Wordpress</option>
  602. <option value="wrench">Wrench</option>
  603. <option value="xing">Xing</option>
  604. <option value="xing-square">Xing (Square)</option>
  605. <option value="yahoo">Yahoo</option>
  606. <option value="yen">Yen</option>
  607. <option value="youtube">Youtube</option>
  608. <option value="youtube-play">Youtube (Play)</option>
  609. <option value="youtube-square">Youtube (Square)</option>
  610. </select>
  611. </p>
  612. <h3 class="label"><label for="size-glyph">{{ "Size" | get_lang }}</label></h3>
  613. <p class="item">
  614. <select name="size-glyph" class="form-control" id="size-glyph">
  615. <option value="big">{{ "Big" | get_lang }}</option>
  616. <option value="medium" selected>{{ "Medium" | get_lang }}</option>
  617. <option value="small">{{ "Small" | get_lang }}</option>
  618. </select>
  619. </p>
  620. </div>
  621. <div class="col-md-12 text-center">
  622. <a id="set-custom-badge" class="btn btn-primary"><em class="fa fa-check"></em> {{ 'UseThisBadge' | get_lang }}</a>
  623. <input type="hidden" id="badge_studio_image" name="badge_studio_image" >
  624. </div>
  625. </div>
  626. </div>
  627. </div>
  628. </div>
  629. <template id="glyph-selector-template">
  630. <div id="glyph-selector" role="dialog" class="overlay hidden" aria-label="Select a glyph" tabIndex="0">
  631. <div class="header">
  632. <label class="title"></label>
  633. </div>
  634. <div class="panel">
  635. <ul>
  636. </ul>
  637. </div>
  638. </div>
  639. </template>
  640. <template id="glyph-selector-item-template">
  641. <li>
  642. <input type="radio" name="glyph-selector-item" class="hidden">
  643. <label></label>
  644. </li>
  645. </template>
  646. <template id="option-template">
  647. <label>
  648. <input type="checkbox">
  649. <span>Label</span>
  650. </label>
  651. </template>
  652. <template id="close-button-template">
  653. <button type="button" class="close fa fa-times-circle-o" aria-label="Close"></button>
  654. </template>
  655. <template id="custom-color-template">
  656. <label>
  657. <input type="color">
  658. <span>Label</span>
  659. </label>
  660. </template>
  661. </div>
  662. </fieldset>
  663. <div class="form-group">
  664. <div class="col-sm-offset-2 col-sm-10">
  665. <button type="submit" class="btn btn-primary btn-large"><em class="fa fa-plus"></em>
  666. {{ 'SaveBadge'| get_lang }}
  667. </button>
  668. </div>
  669. </div>
  670. </form>
  671. </div>
  672. <div class="col-md-3">
  673. <div class="openbadges-img" id="badge-container">
  674. <img id="badge-preview" class="img-responsive" alt="{{ 'BadgePreview' | get_lang }}" src="{{ skill.icon_big }}">
  675. </div>
  676. <div class="create-openbadges">
  677. <button id="btn-open-designer" class="help-badges btn btn-primary btn-large btn-block" data-toggle="tooltip" data-placement="bottom" title="{{ 'DesignANewBadgeComment' | get_lang }}" type="button">
  678. <em class="fa fa-pencil"></em> {{ 'DesignNewBadge' | get_lang }}
  679. </button>
  680. </div>
  681. <div class="create-openbadges">
  682. <button id="btn-open-badge-studio" class="help-badges btn btn-default btn-large btn-block" data-toggle="collapse" data-target="#badge-studio-frame" aria-expanded="false" aria-controls="badge-studio-frame" title="{{ 'DesignWithBadgeStudioComment' | get_lang }}" type="button">
  683. <em class="fa fa-cogs"></em> {{ 'DesignWithBadgeStudio' | get_lang }}
  684. </button>
  685. </div>
  686. </div>
  687. </div>
  688. {{ badge_studio.script_js }}
  689. <script>
  690. $(document).ready(function() {
  691. $('#set-custom-badge').click(function () {
  692. var data = $('#raster').attr('src');
  693. $('#badge_studio_image').val(data);
  694. $('#badge-preview').attr('src', data);
  695. $('#badge-container').removeClass('hide');
  696. });
  697. $('#size-glyph').change(function () {
  698. window.size = $(this).val();
  699. updateGlyph();
  700. });
  701. })
  702. </script>