forked from public/foundryvtt-reve-de-dragon
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| <form class="rdd-dialog-enchanter">
 | |
|   <img class="chat-icon" src="{{item.img}}" data-tooltip="Enchanter {{item.name}}" />
 | |
|   <div class="flexcol">
 | |
|     <h4>Enchanter {{item.name}}</h4>
 | |
|     <div class="flexrow">
 | |
|       <label class="flex-grow">Points de rêve (actuels: {{item.system.pr}})</label>
 | |
|       <input class="attribute-value reve flex-shrink number-x2"
 | |
|         data-dtype="Number" type="number" min="0" max="50"
 | |
|         name="reve" value="{{reve}}" {{#unless options.isGM}}disabled{{/unless}}/>
 | |
|     </div>
 | |
|     {{#if (or options.isGM (not item.system.magique) item.system.purifie purification)}}
 | |
|       {{#each nouveauxpr as |nouveaupr idx|}}
 | |
|       <div class="flexrow">
 | |
|         <label class="flex-grow">Enchantement de {{nouveaupr}} points de rêve</label>
 | |
|         <input class="attribute-value enchantement flex-shrink" type="checkbox" data-reve="{{nouveaupr}}" data-idx="{{idx}}"
 | |
|           {{#if (eq idx ../idx)}}checked{{/if}}>
 | |
|         </input>
 | |
|       </div>
 | |
|       {{/each}}
 | |
|     {{/if}}
 | |
| 
 | |
|     {{#if (or purification options.isGM)}}
 | |
|     <div class="flexrow">
 | |
|       <label for="rendrepurifie">Purifier {{#if (and item.system.magique item.system.purifie)}}(déja purifiée){{/if}}</label>
 | |
|       <input class="attribute-value rendrepurifie" type="checkbox" name="rendrepurifie"
 | |
|       {{#unless options.isGM}}
 | |
|         {{#if item.system.magique}}
 | |
|           {{#if item.system.purifie}}
 | |
|             disabled
 | |
|           {{else if purification}}
 | |
|             checked disabled
 | |
|           {{/if}}
 | |
|         {{else}}
 | |
|           {{#unless purification}}
 | |
|             disabled
 | |
|           {{/unless}}
 | |
|         {{/if}}
 | |
|       {{/unless}} />
 | |
|     </div>
 | |
|     {{/if}}
 | |
| 
 | |
|     {{#if (or permanence options.isGM)}}
 | |
|     <div class="flexrow">
 | |
|       <label for="rendrepermanent">Potion permanente</label>
 | |
|       <input class="attribute-value rendrepermanent" type="checkbox" name="rendrepermanent"/>
 | |
|     </div>
 | |
|     {{/if}}
 | |
|   </div>
 | |
| </form>
 | |
| 
 |