view src/main/webapp/apitoken.xhtml @ 14:be7787c36e58 default tip

new: nofity LGSercies for deleted files
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 02 Nov 2015 16:41:23 +0100
parents a50cf11e5178
children
line wrap: on
line source

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:jsf="http://xmlns.jcp.org/jsf"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
    </h:head>

    <h:body>
        <ui:composition template="/dataverse_template.xhtml">
            <ui:param name="pageTitle" value="#{bundle['apitoken.title']} - #{dataverseServiceBean.findRootDataverse().name} #{bundle.dataverse}"/>
            <ui:param name="showDataverseHeader" value="false"/>
            <ui:define name="body">
                <f:metadata>
                    <f:viewAction action="#{dataverseHeaderFragment.initBreadcrumbs(dataverseServiceBean.findRootDataverse(), bundle['apitoken.title'])}"/>
                </f:metadata>
                <h:form id="apiTokenForm">
                    <p:tabView id="apiTokenView">
                        <p:tab id="apiTokenTab" title="API Token">
                            <p class="help-block">
                                <span class="glyphicon glyphicon-info-sign"/>&#160;
                                <h:outputFormat value="#{bundle['apitoken.message']}" escape="false">
                                    <f:param value="&lt;a href=&#34;/guides/API/index.html&#34; target=&#34;_blank&#34;&gt;"/>
                                    <f:param value="&lt;/a&gt;"/>
                                </h:outputFormat>
                            </p>
                            <div class="highlight">
                                 <pre>
                                    <code class="language-html" data-lang="html">${ApiTokenPage.apiToken}</code>
                                 </pre>
                            </div>
                            <div>
                                <button class="btn btn-default" jsf:action="#{ApiTokenPage.generate()}">
                                    #{bundle['apitoken.generateBtn']}
                                </button>
                            </div>
                        </p:tab>
                    </p:tabView>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>