<?php
class Calendarista_PaymentStripeFormTmpl extends Calendarista_TemplateBase{
	public $name;
	public function __construct(){
		parent::__construct();
		//toDO: expose an action
		$this->name = $this->getViewStateValue('name');
		$this->render();
	}
	
	public function render(){
	?>
		<div class="col-xl-12">
			<div id="card_form_stripe_<?php echo $this->uniqueId ?>" class="calendarista-collapsable collapse">
				<div id="card_container_<?php echo $this->uniqueId ?>" class="calendarista-card-container-stripe calendarista-row-single">
					<div class="form-group">
						<label class="form-control-label calendarista-typography--caption1">
							<?php echo $this->stringResources['CREDIT_CARD_LABEL'] ?>
						</label>
						<div id="calendarista_card_element_<?php echo $this->uniqueId ?>">
						  <!-- A Stripe Element will be inserted here. -->
						</div>
						<!-- Used to display form errors. -->
						<div id="card_error_container_<?php echo $this->uniqueId ?>" class="calendarista-row-single alert alert-warning calendarista-typography--caption1 hide" role="alert"></div>
					</div>
				</div>
			</div>
		</div>
		
	<?php
	}
}?>

