badge_create.tpl 69 KB

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