PageRenderTime 62ms CodeModel.GetById 9ms RepoModel.GetById 1ms app.codeStats 0ms

/resources/views/wb_admin/winners.blade.php

https://gitlab.com/urbanjunglestudio/whambush-website
PHP | 126 lines | 105 code | 21 blank | 0 comment | 2 complexity | 41565c392697f4935c4333d79cd0e7a3 MD5 | raw file
  1. @extends('admin_base')
  2. @section('extra_js')
  3. <script src="{{ asset('js/admin/jquery-ui.custom/jquery-ui.js') }}"></script>
  4. <link rel="stylesheet" href="{{ asset('js/admin/jquery-ui.custom/jquery-ui.css') }}">
  5. <script src=<?php echo asset('js/admin/winners.js'); echo "?rand=".mt_rand();?>></script>
  6. @stop
  7. @section('content')
  8. <h1>Mission winners</h1>
  9. <div class="tiny well well-lg">
  10. <div id="_mission_rsp_msg"></div>
  11. {!! Form::open( array(
  12. 'route' => 'admin_winners_post',
  13. 'method' => 'post',
  14. 'id' => '_get_winners',
  15. ) ) !!}
  16. <div id="_winner_type">
  17. {!! Form::label('_mission_type', 'Select mission type:') !!}
  18. {!! Form::radio( '_mission_type', 'normal', true, array('id' => '_mission_normal')) !!} Normal |
  19. {!! Form::radio( '_mission_type', 'icon', false, array('id' => '_mission_icon')) !!} Icon
  20. </div>
  21. <hr>
  22. <div id="_mission_country">
  23. {!! Form::label('_mission_country', 'Country:') !!}
  24. {!! Form::radio( '_mission_country', 'FI', true) !!} Finland |
  25. {!! Form::radio( '_mission_country', 'EE', false) !!} Estonia |
  26. {!! Form::radio( '_mission_country', 'ZZ', false) !!} Global
  27. </div>
  28. <hr>
  29. <div id="_number_of_missions" class="styled-select">
  30. {!! Form::label('_number_of_missions', 'Max number of missions to print out:') !!}
  31. <?php
  32. $thelist = array();
  33. for ($i=1; $i < 100; $i++) {
  34. $thelist[$i] = $i;
  35. }
  36. echo Form::select('_number_of_missions',$thelist,'7');
  37. ?>
  38. <label>&nbsp-&nbsp</label>
  39. {!! Form::label('_number_of_entries', 'Number of entries / mission:') !!}
  40. <?php
  41. $thelist = array('default' => 'default', 'all' => 'all');
  42. for ($i=1; $i < 50; $i++) {
  43. $thelist[$i] = $i;
  44. }
  45. echo Form::select('_number_of_entries',$thelist,'default');
  46. ?>
  47. <span class="tiny">*(default = normal:1, icon:10)</span>
  48. </div>
  49. <hr>
  50. <div id="_checkbox">
  51. {!! Form::label('_download_links', 'Create download links:') !!}
  52. {!! Form::checkbox('_download_links', 1,false) !!}
  53. {!! Form::label('_download_links', '"Icon friendly output":') !!}
  54. {!! Form::checkbox('_icon_friendly', 1,false) !!}
  55. {!! Form::label('_download_links', '"Mail friendly output":') !!}
  56. {!! Form::checkbox('_mail_friendly', 1,false) !!}
  57. </div>
  58. <br>
  59. {!! Form::submit( 'Get winners', array(
  60. 'id' => '_mission_create',
  61. 'class' => 'btn-default btn',
  62. ) ) !!}
  63. {!! Form::close() !!}
  64. <div id="_content" hidden></div>
  65. </div>
  66. <div id="dialog" title="Mission info"></div>
  67. <div id="banana_pop_up" title="Give bananas">
  68. {!! Form::open( array(
  69. 'route' => 'admin_bananas_post',
  70. 'method' => 'post',
  71. 'id' => '_give_bananas',
  72. ) ) !!}
  73. {!! Form::label('_number_of_bananas', 'Bananas:') !!}
  74. {!! Form::number('_number_of_bananas') !!}
  75. <div id="_banana_form_id" hidden></div><br><br>
  76. {!! Form::submit( 'Give', array(
  77. 'id' => '_bananas_give',
  78. 'class' => 'btn-primary',
  79. ) ) !!}
  80. {!! Form::close() !!}
  81. </div>
  82. <div id="email_pop_up" title="Send mail" hidden>
  83. {!! Form::open( array(
  84. 'route' => 'admin_mail_post',
  85. 'method' => 'post',
  86. 'id' => '_send_mail',
  87. ) ) !!}
  88. {!! Form::label('_mail_subject', 'Subject:') !!}
  89. <?php echo Form::text('_mail_subject') ?>
  90. {!! Form::label('_mail_message', 'Message:') !!}
  91. <?php echo Form::textarea('_mail_message') ?>
  92. <div id="_mail_message_local" hidden></div>
  93. <div id="_mail_form_id" hidden></div><br><br>
  94. {!! Form::submit( 'Send', array(
  95. 'id' => '_mail_send',
  96. 'class' => 'btn-default btn',
  97. ) ) !!}
  98. {!! Form::close() !!}
  99. </div>
  100. <script>
  101. $( "#dialog" ).dialog({ autoOpen: false, width: 600 });
  102. $( "#banana_pop_up" ).dialog({ autoOpen: false, width: 600 });
  103. $( "#email_pop_up" ).dialog({ autoOpen: false, width: 800 });
  104. </script>
  105. @stop