New download buttons for everyone (that can generate sponsoring contracts)
ref #84
This commit is contained in:
		| @@ -20,6 +20,7 @@ | ||||
|   $: filter__teams = selectedFilter_teams || []; | ||||
|   $: filter__orgs = selectedFilter || []; | ||||
|   $: filterGroupIDs = filter__teams.concat(filter__orgs).map((i) => i.value); | ||||
|   $: sponsoring_contracts_download_open = false; | ||||
|   $: teams = []; | ||||
|   $: orgs = []; | ||||
|   $: mappedteams = teams.map(function (g) { | ||||
| @@ -128,14 +129,53 @@ | ||||
|       </div> | ||||
|       <div class="h-12"> | ||||
|         {#if current_runners.some((r) => r.is_selected === true)} | ||||
|           <button | ||||
|             on:click={() => { | ||||
|               generateSponsoringContract('de'); | ||||
|             }} | ||||
|             type="button" | ||||
|             class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-600 text-base font-medium text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 sm:w-auto sm:text-sm"> | ||||
|             {$_('generate-sponsoring-contracts')} | ||||
|           </button> | ||||
|         <div id="sponsoring:dropdown" class="relative inline-block"> | ||||
|           <div> | ||||
|             <button | ||||
|               on:click={() => { | ||||
|                 sponsoring_contracts_download_open = !sponsoring_contracts_download_open; | ||||
|               }} | ||||
|               type="button" | ||||
|               class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-600 text-base font-medium text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 sm:ml-3 sm:w-auto sm:text-sm inline-flex" | ||||
|               id="options-menu" | ||||
|               aria-haspopup="true" | ||||
|               aria-expanded="true"> | ||||
|               {$_('generate-sponsoring-contracts')} | ||||
|               <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="-mr-1 ml-2 h-5 w-5"><path fill="none" d="M0 0h24v24H0z"/><path fill="currentColor" d="M3 19h18v2H3v-2zm10-5.83l6.07-6.07 1.42 1.41L12 17 3.52 8.52l1.4-1.42L11 13.17V2h2v11.17z"/></svg> | ||||
|             </button> | ||||
|           </div> | ||||
|           {#if sponsoring_contracts_download_open} | ||||
|             <div | ||||
|               class="origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5"> | ||||
|               <div | ||||
|                 class="py-1" | ||||
|                 role="menu" | ||||
|                 aria-orientation="vertical" | ||||
|                 aria-labelledby="options-menu"> | ||||
|                 <span | ||||
|                   class="block w-full text-left px-4 py-2 text-sm text-gray-700">{$_('select-language')}</span> | ||||
|                 <button | ||||
|                   on:click={() => { | ||||
|                     generateSponsoringContract('de'); | ||||
|                   }} | ||||
|                   type="submit" | ||||
|                   class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900 inline-flex" | ||||
|                   role="menuitem"> | ||||
|                   {$_('german')} | ||||
|                 </button> | ||||
|                 <button | ||||
|                   on:click={() => { | ||||
|                     generateSponsoringContract('en'); | ||||
|                   }} | ||||
|                   type="submit" | ||||
|                   class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900 inline-flex" | ||||
|                   role="menuitem"> | ||||
|                   {$_('english')} | ||||
|                 </button> | ||||
|               </div> | ||||
|             </div> | ||||
|           {/if} | ||||
|         </div> | ||||
|         {/if} | ||||
|       </div> | ||||
|       <div | ||||
|   | ||||
		Reference in New Issue
	
	Block a user