bitwarden-android/src/App/Pages/Accounts/EnvironmentPage.xaml

89 lines
3.5 KiB
Text
Raw Normal View History

2019-05-02 19:20:56 +03:00
<?xml version="1.0" encoding="utf-8" ?>
<pages:BaseContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Pages.EnvironmentPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
xmlns:u="clr-namespace:Bit.App.Utilities"
x:DataType="pages:EnvironmentPageViewModel"
Title="{Binding PageTitle}">
<ContentPage.BindingContext>
<pages:EnvironmentPageViewModel />
</ContentPage.BindingContext>
<ContentPage.ToolbarItems>
<ToolbarItem Text="{u:I18n Save}" Clicked="Submit_Clicked" />
</ContentPage.ToolbarItems>
<ScrollView>
<StackLayout Spacing="20">
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row-header">
<Label Text="{u:I18n SelfHostedEnvironment}"
StyleClass="box-header, box-header-platform" />
</StackLayout>
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n ServerUrl}"
StyleClass="box-label" />
<Entry
Text="{Binding BaseUrl}"
Keyboard="Url"
Placeholder="ex. https://bitwarden.company.com"
StyleClass="box-value" />
</StackLayout>
<Label
Text="{u:I18n SelfHostedEnvironmentFooter}"
StyleClass="box-footer-label" />
</StackLayout>
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row-header">
<Label Text="{u:I18n CustomEnvironment}"
StyleClass="box-header, box-header-platform" />
</StackLayout>
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n WebVaultUrl}"
StyleClass="box-label" />
<Entry
Text="{Binding WebVaultUrl}"
Keyboard="Url"
StyleClass="box-value" />
</StackLayout>
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n ApiUrl}"
StyleClass="box-label" />
<Entry
Text="{Binding ApiUrl}"
Keyboard="Url"
StyleClass="box-value" />
</StackLayout>
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n IdentityUrl}"
StyleClass="box-label" />
<Entry
Text="{Binding IdentityUrl}"
Keyboard="Url"
StyleClass="box-value" />
</StackLayout>
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n IconsUrl}"
StyleClass="box-label" />
<Entry
Text="{Binding IconsUrl}"
Keyboard="Url"
StyleClass="box-value" />
</StackLayout>
<Label
Text="{u:I18n CustomEnvironmentFooter}"
StyleClass="box-footer-label" />
</StackLayout>
</StackLayout>
</ScrollView>
</pages:BaseContentPage>