1 <%@ MasterClass="Application.Web.Layouts.Wizard" Theme="Baculum-v1"%>
2 <com:TContent ID="Wizard">
3 <com:TWizard ID="InstallWizard"
5 StepStyle.CssClass="steps"
6 HeaderStyle.CssClass="wizard-body"
7 NavigationStyle.CssClass="navigation"
8 UseDefaultLayout="false"
10 OnCancelButtonClick="wizardStop"
11 OnCompleteButtonClick="wizardCompleted"
15 <div class="step step-<%=($this->Parent->ActiveStepIndex === 0) ? 'first-active' : (($this->Parent->ActiveStepIndex === 1) ? 'first-next-active' : 'first')%>">
16 <div><com:TTranslate Text="Language" /></div>
18 <div class="step step-<%=($this->Parent->ActiveStepIndex === 1) ? 'active' : (($this->Parent->ActiveStepIndex === 2) ? 'prev-active' : 'normal')%>">
19 <div><com:TTranslate Text="Add APIs" /></div>
21 <div class="step step-<%=($this->Parent->ActiveStepIndex === 2) ? 'active' : (($this->Parent->ActiveStepIndex === 3) ? 'prev-active' : 'normal')%>">
22 <div><com:TTranslate Text="Authentication" /></div>
24 <div class="step step-<%=($this->Parent->ActiveStepIndex === 3) ? 'active' : (($this->Parent->ActiveStepIndex === 4) ? 'prev-active' : 'normal')%>">
25 <div><com:TTranslate Text="Finish" /></div>
27 <div id="title"><%=$this->Parent->ActiveStep->Title%><div>
29 </prop:HeaderTemplate>
30 <prop:StartNavigationTemplate>
31 <com:TPanel CssClass="button-cancel" Visible="<%=$this->getPage()->first_run === false%>"><com:BButton CommandName="Cancel" Text="<%[ Cancel ]%>" /></com:TPanel>
32 <div <%=$this->getPage()->first_run === false ? 'class="button-prev-next"' : ''%>><com:BButton CommandName="NextStep" Text="<%[ Next » ]%>" /></div>
33 </prop:StartNavigationTemplate>
35 <prop:StepNavigationTemplate>
36 <com:TPanel CssClass="button-cancel" Visible="<%=$this->getPage()->first_run === false%>"><com:BButton CommandName="Cancel" Text="<%[ Cancel ]%>" /></com:TPanel>
37 <div <%=$this->getPage()->first_run === false ? 'class="button-prev-next"' : ''%>>
38 <com:BButton CausesValidation="False" CssClass="bbutton" CommandName="PreviousStep" Text="<%[ « Previous ]%>" />
39 <com:BButton ID="NextButton" CommandName="NextStep" Text="<%[ Next » ]%>" />
41 </prop:StepNavigationTemplate>
43 <prop:FinishNavigationTemplate>
44 <com:TPanel CssClass="button-cancel" Visible="<%=$this->getPage()->first_run === false%>"><com:BButton CommandName="Cancel" Text="<%[ Cancel ]%>" /></com:TPanel>
45 <div <%=$this->getPage()->first_run === false ? 'class="button-prev-next"' : ''%>>
46 <com:BButton CausesValidation="False" CssClass="bbutton" CommandName="PreviousStep" Text="<%[ « Previous ]%>" />
47 <com:BButton CommandName="Complete" Text="<%[ Save ]%>" />
49 </prop:FinishNavigationTemplate>
50 <com:TWizardStep ID="Step1" Title="<%[ Step 1 - select language ]%>" StepType="Auto">
52 <div class="text"><com:TLabel ForControl="Lang" Text="<%[ Language: ]%>" /></div>
54 <com:TActiveDropDownList ID="Lang" CssClass="textbox" Width="150px" OnTextChanged="setLang" CausesValidation="false" ClientSide.OnComplete="location.reload();">
55 <com:TListItem Value="en" Text="<%[ English ]%>" />
56 <com:TListItem Value="pl" Text="<%[ Polish ]%>" />
57 <com:TListItem Value="pt" Text="<%[ Portuguese ]%>" />
58 <com:TListItem Value="ja" Text="<%[ Japanese ]%>" />
59 </com:TActiveDropDownList>
60 <com:TCompareValidator CssClass="validator-block" Display="Dynamic" ControlToValidate="Lang" DataType="String" ValueToCompare="none" Operator="NotEqual" Text="<%[ Please select language. ]%>" />
64 <com:TWizardStep ID="Step2" Title="<%[ Step 2 - add API instances ]%>" StepType="Auto">
65 <p><%[ Baculum web interface requires to add at least one Baculum API instance with shared Catalog access. Please add API instance. ]%></p>
66 <com:Application.Common.Portlets.NewHost
73 <script type="text/javascript">document.getElementById('new_host').style.display = 'block';</script>
75 <com:TWizardStep ID="Step3" Title="<%[ Step 3 - authentication params to Baculum Web panel ]%>" StepType="Auto">
77 <div class="text"><com:TLabel ForControl="WebLogin" Text="<%[ Administration login: ]%>" /></div>
79 <com:TTextBox ID="WebLogin" CssClass="textbox" CausesValidation="false" />
80 <com:TRequiredFieldValidator CssClass="validator-block" Display="Dynamic" ControlCssClass="invalidate" ControlToValidate="WebLogin" Text="<%[ Please enter login. ]%>" />
81 <com:TRegularExpressionValidator CssClass="validator-block" Display="Dynamic" ControlCssClass="invalidate" ControlToValidate="WebLogin" RegularExpression="<%=BasicWebUserConfig::USER_PATTERN%>" Text="<%[ Invalid login value. Login may contain a-z A-Z 0-9 characters. ]%>" />
85 <div class="text"><com:TLabel ForControl="WebPassword" Text="<%[ Administration password: ]%>" /></div>
87 <com:TTextBox ID="WebPassword" CssClass="textbox" TextMode="Password" MaxLength="30" PersistPassword="true" />
88 <com:TRequiredFieldValidator CssClass="validator-block" Display="Dynamic" ControlCssClass="invalidate" ControlToValidate="WebPassword" Text="<%[ Please enter password. ]%>"/>
89 <com:TRegularExpressionValidator CssClass="validator-block" Display="Dynamic" ControlCssClass="invalidate" ControlToValidate="WebPassword" RegularExpression="[\S\s]{5,30}" Text="<%[ Password must be longer than 4 chars. ]%>" />
93 <div class="text"><com:TLabel ForControl="RetypeWebPassword" Text="<%[ Retype administration password: ]%>" /></div>
95 <com:TTextBox ID="RetypeWebPassword" CssClass="textbox" TextMode="Password" MaxLength="30" PersistPassword="true" />
96 <com:TRequiredFieldValidator ID="RetypeWebPasswordRequireValidator" CssClass="validator-block" Display="Dynamic" ControlCssClass="invalidate" ControlToValidate="RetypeWebPassword" Text="<%[ Please enter retype password. ]%>"/>
97 <com:TRegularExpressionValidator ID="RetypeWebPasswordRegexpValidator" CssClass="validator-block" Display="Dynamic" ControlCssClass="invalidate" ControlToValidate="RetypeWebPassword" RegularExpression="[\S\s]{5,30}" Text="<%[ Password must be longer than 4 chars. ]%>" />
98 <com:TCustomValidator ID="RetypeWebPasswordCustomValidator" CssClass="validator-block" Display="Dynamic" ControlCssClass="invalidate" ControlToValidate="RetypeWebPassword" OnServerValidate="validateAdministratorPassword" Text="<%[ Passwords must be the same. ]%>" />
102 <com:TWizardStep ID="Step4" Title="<%[ Step 4 - Finish ]%>" StepType="Finish">
104 <legend><%[ Authorization to Baculum API ]%></legend>
106 <div class="text"><%[ Protocol: ]%></div>
107 <div class="field bold"><%=$this->AddNewHost->APIProtocol->SelectedValue%></div>
110 <div class="text"><%[ IP Address/Hostname: ]%></div>
111 <div class="field bold"><%=$this->AddNewHost->APIAddress->Text%></div>
113 <div style="display: <%=$this->AddNewHost->AuthBasic->Checked ? 'block' : 'none'%>">
115 <div class="text"><%[ Auth Type: ]%></div>
116 <div class="field bold">HTTP Basic</div>
119 <div class="text"><%[ Port: ]%></div>
120 <div class="field bold"><%=$this->AddNewHost->APIPort->Text%></div>
123 <div class="text"><%[ API Login: ]%></div>
124 <div class="field bold"><%=$this->AddNewHost->APIBasicLogin->Text%></div>
127 <div class="text"><%[ API Password: ]%></div>
128 <div class="field bold"><%=preg_replace('/.{1}/', '*', $this->AddNewHost->APIBasicPassword->Text)%></div>
131 <div style="display: <%=$this->AddNewHost->AuthOAuth2->Checked ? 'block' : 'none'%>">
133 <div class="text"><%[ Auth Type: ]%></div>
134 <div class="field bold">OAuth2</div>
137 <div class="text"><%[ OAuth2 Client ID: ]%></div>
138 <div class="field bold"><%=$this->AddNewHost->APIOAuth2ClientId->Text%></div>
141 <div class="text"><%[ OAuth2 Client Secret: ]%></div>
142 <div class="field bold"><%=preg_replace('/.{1}/', '*', $this->AddNewHost->APIOAuth2ClientSecret->Text)%></div>
145 <div class="text"><%[ OAuth2 Redirect URI: ]%></div>
146 <div class="field bold"><%=$this->AddNewHost->APIOAuth2RedirectURI->Text%></div>
149 <div class="text"><%[ OAuth2 Scope: ]%></div>
150 <div class="field bold"><%=$this->AddNewHost->APIOAuth2Scope->Text%></div>
155 <legend><%[ Authorization to Baculum Web ]%></legend>
157 <div class="text"><%[ Administration login: ]%></div>
158 <div class="field bold"><%=$this->WebLogin->Text%></div>
161 <div class="text"><%[ Administration password: ]%></div>
162 <div class="field bold"><%=preg_replace('/.{1}/', '*', $this->WebPassword->Text)%></div>